-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (38 loc) · 1.07 KB
/
macos-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: macos-release
on: workflow_dispatch
env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 5.15.2
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '${{ env.QT_VERSION }}'
target: 'desktop'
install-deps: 'true'
modules: 'qtscript'
- name: Versions
run: qmake -v
- name: Build
run: |
cd emulator
qmake "CONFIG+=release" -r GST_VERSION=1.0 QtUkncBtl.pro
make
- name: Packaging
working-directory: ${{ env.SOURCE_DIR }}/emulator
run: |
export PATH=$HOME/Qt/5.15/clang_64/bin:$PATH
ls -l *.app
macdeployqt QtUkncBtl.app -verbose=1 -dmg
mv QtUkncBtl.dmg QtUkncBtl-macOS-${{ github.run_id }}.dmg
ls -l *.dmg
- name: Linux artefact
uses: actions/upload-artifact@v3
with:
name: DMG
path: ${{ env.SOURCE_DIR }}/emulator/*.dmg