-
Notifications
You must be signed in to change notification settings - Fork 6
87 lines (81 loc) · 2.64 KB
/
macos-dmg.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: 👷 MacOs CI
on:
push:
branches:
- master
- ci
release:
types:
- created
pull_request:
branches:
- master
jobs:
BuildDmg:
runs-on: macOS-latest
strategy:
matrix:
min-osx-target: ['10.13']
qt-version: ['6.6.2']
build-type: ['Release']
build-system: ['12']
steps:
-
uses: actions/checkout@v4
with:
lfs: true
-
uses: OlivierLDff/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.MAC_DMG_CERTIFICATES_FILE_BASE64 }}
p12-password: ${{ secrets.MAC_DMG_CERTIFICATES_PASSWORD }}
-
uses: OlivierLDff/download-provisioning-profiles@master
with:
bundle-id: com.qaterial.hotreload
profile-type: 'MAC_APP_DIRECT'
issuer-id: ${{ secrets.MAC_APPSTORE_ISSUER_ID }}
api-key-id: ${{ secrets.MAC_APPSTORE_KEY_ID }}
api-private-key: ${{ secrets.MAC_APPSTORE_PRIVATE_KEY }}
-
name: ⬆ Install Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{ matrix.qt-version }}
cache: true
modules: 'qtcharts qtdatavis3d qtquick3d qt5compat qtshadertools'
-
name: 🔧 Configure
run: |
mkdir -p build
cmake \
-G "Xcode" \
-Tbuildsystem=${{ matrix.build-system }} \
-DCMAKE_OSX_DEPLOYMENT_TARGET=${{ matrix.min-osx-target }} \
-DQT_MAC_TEAM_ID=${{ secrets.MAC_TEAM_ID }} \
-DQT_MAC_CODE_SIGN_IDENTITY="${{ secrets.MAC_DMG_CODE_SIGN_IDENTITY }}" \
-DQT_MAC_PROVISIONING_PROFILE_SPECIFIER=${{ secrets.MAC_DMG_PROVISIONING_PROFILE_SPECIFIER }} \
-B ./build/ -S .
-
name: 🔨 Build QaterialHotReload
run: cmake --build build --target QaterialHotReloadApp --config "${{ matrix.build-type }}"
-
name: 🚀 Deploy QaterialHotReload Dmg
run: cmake --build build --target QaterialHotReloadAppDmg --config "${{ matrix.build-type }}"
-
name: 📦 Upload QaterialHotReload Dmg
uses: actions/upload-artifact@v4
with:
name: QaterialHotReload-${{ matrix.min-osx-target }}.dmg
path: build/${{ matrix.build-type }}/QaterialHotReloadApp.dmg
-
name: 🚀 Upload Release Asset
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/${{ matrix.build-type }}/QaterialHotReloadApp.dmg
asset_name: QaterialHotReload.dmg
asset_content_type: application/zip