@@ -224,6 +224,61 @@ jobs:
224
224
name : build-windows
225
225
path : ' *installer.exe'
226
226
227
+ build-macos-release :
228
+ runs-on : macos-14
229
+ strategy :
230
+ matrix :
231
+ os : [macos-14]
232
+ qt-version : ['6.8']
233
+ qt-target : ['desktop']
234
+ steps :
235
+ - uses : actions/checkout@v4
236
+ with :
237
+ fetch-depth : 0
238
+ submodules : ' recursive'
239
+ - name : Setup environment
240
+ run : |
241
+ sed -i -e '/^#/d' .github/config.env
242
+ sed -i -e '/^$/d' .github/config.env
243
+ cat .github/config.env >> "${GITHUB_ENV}"
244
+ shell : bash
245
+ - name : Set up node.js
246
+ uses : actions/setup-node@v3
247
+ - if : env.build_on_new_tags != 1
248
+ name : Cancel if build on new tags is disabled
249
+
250
+ - name : Get version
251
+ run : |
252
+ brew install grep
253
+ version=$(LC_ALL=en_US.utf8 ggrep -oP 'project\([^)]*\s+VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' CMakeLists.txt)
254
+ echo "Project version: $version"
255
+ echo previous_tag=$version >> "${GITHUB_ENV}"
256
+ shell : bash
257
+ - if : contains(github.ref, '-')
258
+ name : Check if this is a pre-release
259
+ run : echo is_prerelease=1 >> "${GITHUB_ENV}"
260
+ shell : bash
261
+ - name : Set up node.js
262
+ uses : actions/setup-node@v3
263
+ # Install Qt
264
+ - name : Install Qt
265
+ uses : jurplel/install-qt-action@v3
266
+ with :
267
+ version : ${{ matrix.qt-version }}
268
+ host : ' mac'
269
+ target : ${{ matrix.qt-target }}
270
+ modules : ' '
271
+ # Build
272
+ - name : Build
273
+ run : .ci/macos_build.sh
274
+ shell : bash
275
+ # Upload
276
+ - name : Upload artifacts
277
+ uses : actions/upload-artifact@v4
278
+ with :
279
+ name : build-Qt-${{ matrix.qt-version }}
280
+ path : ' *.dmg'
281
+
227
282
# Release
228
283
release :
229
284
runs-on : ubuntu-latest
@@ -275,8 +330,7 @@ jobs:
275
330
name : Create release
276
331
uses : ncipollo/release-action@v1
277
332
with :
278
- # artifacts: "build-windows/*.exe,build-linux-*/*.AppImage,build-linux-*/*.zsync,build-macos/*.dmg"
279
- artifacts : " build-windows/*.exe,build-linux-*/*.AppImage,build-linux-*/*.zsync"
333
+ artifacts : " build-windows/*.exe,build-linux-*/*.AppImage,build-linux-*/*.zsync,build-macos/*.dmg"
280
334
name : " ${{ env.app_name }} ${{ env.version }}"
281
335
owner : ${{ github.event.pusher.name }}
282
336
draft : true
0 commit comments