1
1
name : Build
2
2
3
3
on :
4
+ # Do it on every push or PR on these branches
4
5
push :
5
6
branches : [ dev, main, workflow_dispatch, features/sp-api ]
6
7
pull_request :
7
8
branches : [ dev, main, workflow_dispatch, features/sp-api ]
8
9
9
10
jobs :
11
+ # Build Sonic Pi
10
12
build :
11
13
name : " ${{matrix.title}} (${{matrix.cc}}, ${{matrix.arch}}, ${{matrix.build_type}})"
12
14
runs-on : ${{matrix.os}}
83
85
otp-version : 23.2.1
84
86
if : matrix.os == 'ubuntu-latest'
85
87
88
+ # Install Erlang on MacOS
86
89
- name : Mac Erlang
87
90
continue-on-error : true
88
91
run : |
91
94
brew install erlang
92
95
if : matrix.os == 'macos-latest'
93
96
97
+ # Prebuild on Ubuntu
94
98
- name : Prebuild Linux
95
99
working-directory : ${{github.workspace}}/app
96
100
env :
@@ -100,7 +104,8 @@ jobs:
100
104
sudo apt install -y pulseaudio dbus-x11 libssl-dev ruby-dev supercollider-server sc3-plugins-server alsa-utils jackd2 libjack-jackd2-dev libjack-jackd2-0 libasound2-dev librtmidi-dev pulseaudio-module-jack
101
105
./linux-prebuild.sh --build-aubio
102
106
if : matrix.os == 'ubuntu-latest'
103
-
107
+
108
+ # Prebuild on Mac
104
109
- name : Prebuild Mac
105
110
working-directory : ${{github.workspace}}/app
106
111
env :
@@ -110,6 +115,7 @@ jobs:
110
115
./mac-prebuild.sh
111
116
if : matrix.os == 'macos-latest'
112
117
118
+ # Prebuild on Windows
113
119
# Note that we 'hide' the msys folders on windows to stop conflicts when building
114
120
# Flac
115
121
- name : Prebuild Windows
@@ -125,7 +131,8 @@ jobs:
125
131
126
132
# - name: Setup tmate session
127
133
# uses: mxschmitt/action-tmate@v3
128
-
134
+
135
+ # Run Configuration Config on Ubuntu
129
136
- name : Config Linux
130
137
working-directory : ${{github.workspace}}/app
131
138
env :
@@ -134,7 +141,8 @@ jobs:
134
141
run : |
135
142
./linux-config.sh
136
143
if : matrix.os == 'ubuntu-latest'
137
-
144
+
145
+ # Run Configuration Config on Mac
138
146
- name : Config Mac
139
147
working-directory : ${{github.workspace}}/app
140
148
env :
@@ -143,7 +151,8 @@ jobs:
143
151
run : |
144
152
./mac-config.sh
145
153
if : matrix.os == 'macos-latest'
146
-
154
+
155
+ # Run Configuration Config on Windows
147
156
- name : Config Windows
148
157
working-directory : ${{github.workspace}}/app
149
158
shell : cmd
@@ -154,6 +163,7 @@ jobs:
154
163
win-config.bat
155
164
if : matrix.os == 'windows-latest'
156
165
166
+ # Finally: Build
157
167
- name : Do build
158
168
working-directory : ${{github.workspace}}/app/build
159
169
run : cmake --build . --config ${{ matrix.build_type }}
0 commit comments