@@ -147,7 +147,84 @@ jobs:
147
147
path : CortexCommand.AppImage
148
148
if-no-files-found : error
149
149
150
- build-macos :
150
+ build-macos-arm :
151
+ runs-on : macos-latest
152
+ name : MacOS Build
153
+
154
+ env :
155
+ MACOSX_DEPLOYMENT_TARGET : ${{inputs.macosx-deployment-target}}
156
+ steps :
157
+ - uses : actions/checkout@v4
158
+ - uses : actions/setup-python@v5
159
+ with :
160
+ python-version : " 3.x"
161
+ - name : " Install Dependencies"
162
+ run : |
163
+ brew install ccache pkg-config sdl2 sdl2_image minizip lz4 flac luajit lua libpng tbb ninja meson dylibbundler
164
+
165
+ - name : Set Version
166
+ if : ${{inputs.new_release_version}}
167
+ uses : ./.github/actions/set_version
168
+ with :
169
+ new_release_version : ${{inputs.new_release_version}}
170
+ github_token : ${{ secrets.GITHUB_TOKEN }}
171
+
172
+ - name : ccache
173
+ uses : hendrikmuhs/ccache-action@v1
174
+ with :
175
+ key : ${{ github.job }}-${{ matrix.os }}
176
+
177
+ - name : Setup Meson
178
+ env :
179
+ LDFLAGS : " -static-libgcc -static-libstdc++"
180
+ CC : " gcc-14"
181
+ CXX : " g++-14"
182
+ run : |
183
+ meson setup --buildtype=${{inputs.build_type}} -Ddebug_type=${{inputs.debug_level}} -Db_lto=false build
184
+
185
+ - name : Configure for App Bundle
186
+ if : ${{inputs.upload_artefacts}}
187
+ env :
188
+ LDFLAGS : " -static-libgcc -static-libstdc++"
189
+ run : |
190
+ meson configure \
191
+ -Dinstall_data=false -Dinstall_runner=false -Dfmod_dir=Contents/Frameworks \
192
+ --bindir=Contents/MacOS \
193
+ --prefix="/" \
194
+ -Ddylibbundler_args="-ns" \
195
+ build
196
+
197
+ - name : Build
198
+ env :
199
+ LDFLAGS : " -static-libgcc -static-libstdc++"
200
+ run : |
201
+ meson compile -C build
202
+
203
+ - name : Create App Bundle
204
+ if : ${{inputs.upload_artefacts}}
205
+ run : |
206
+ meson install --destdir="/tmp/Cortex Command.app" -C build
207
+
208
+ - name : Tar files
209
+ if : ${{inputs.upload_artefacts}}
210
+ run : |
211
+ cd /tmp/
212
+ tar -cvf CortexCommand.tar "Cortex Command.app"
213
+
214
+ - name : Move artefact
215
+ if : ${{inputs.upload_artefacts}}
216
+ run : cp /tmp/CortexCommand.tar .
217
+
218
+ - name : Artifact Deploy
219
+ if : ${{inputs.upload_artefacts}}
220
+ uses : actions/upload-artifact@v4
221
+ with :
222
+ name : CortexCommand (macOS)
223
+ path : |
224
+ CortexCommand.tar
225
+ if-no-files-found : error
226
+
227
+ build-macos-x86 :
151
228
runs-on : ubuntu-latest
152
229
name : MacOS Build
153
230
0 commit comments