88
99jobs :
1010 build :
11- name : " Build: ${{ matrix.os }} Qt ${{ matrix.qtvershort }}"
11+ name : " Build: ${{ matrix.os }} ${{ matrix.archname }}"
1212 runs-on : ${{ matrix.os }}
1313 strategy :
1414 fail-fast : false
1515 matrix :
16- qtvershort : [5_intel, 6_intel, 6_arm ]
16+ archname : [intel, arm ]
1717 config : [Release]
1818 include :
19- - qtvershort : " 5_intel "
19+ - archname : " intel "
2020 arch : x64
21- qtver : Qt5
2221 os : macos-13
23- - qtvershort : " 6_intel"
24- arch : x64
25- qtver : Qt6
26- os : macos-13
27- - qtvershort : " 6_arm"
22+ - archname : " arm"
2823 arch : arm64
29- qtver : Qt6
3024 os : macos-14
3125
3226 steps :
@@ -48,21 +42,21 @@ jobs:
4842 with :
4943 vcpkgJsonGlob : ' **/gui/qt/vcpkg.json'
5044
51- - name : Build CEmu ${{ matrix.qtver }} ${{ matrix. config }} on macOS ${{ matrix.arch }}
45+ - name : Build CEmu ${{ matrix.config }} on macOS ${{ matrix.arch }}
5246 uses : lukka/run-cmake@67c73a83a46f86c4e0b96b741ac37ff495478c38 # latest as of 2025-10-04
5347 with :
5448 cmakeListsTxtPath : ' ${{ github.workspace }}/gui/qt/CMakeLists.txt'
55- configurePreset : ' Mac-${{ matrix.arch }}-${{ matrix.qtver }} '
49+ configurePreset : ' Mac-${{ matrix.arch }}'
5650 configurePresetAdditionalArgs : " ['-DDEPS_RELEASE_ONLY=ON', '-DSHORT_VERSION=v3.0']"
57- buildPreset : ' Mac-${{ matrix.arch }}-${{ matrix.qtver }}-${{ matrix. config }}'
51+ buildPreset : ' Mac-${{ matrix.arch }}-${{ matrix.config }}'
5852 env :
5953 VCPKG_DEFAULT_HOST_TRIPLET : ${{ matrix.arch }}-osx-release
6054 VCPKG_FORCE_SYSTEM_BINARIES : 1
6155
6256 - name : Move to temp folder
6357 run : |
64- mkdir -p /tmp/CEmu-nightly_mac_qt ${{matrix.qtvershort }}/
65- mv ${{ github.workspace }}/gui/qt/CEmu.build/Mac-${{ matrix.arch }}-${{ matrix.qtver }} /${{ matrix.config }}/CEmu.app /tmp/CEmu-nightly_mac_qt ${{matrix.qtvershort }}/
58+ mkdir -p /tmp/CEmu-nightly_mac_ ${{matrix.archname }}/
59+ mv ${{ github.workspace }}/gui/qt/CEmu.build/Mac-${{ matrix.arch }}/${{ matrix.config }}/CEmu.app /tmp/CEmu-nightly_mac_ ${{matrix.archname }}/
6660
6761 - name : " Codesign CEmu.app"
6862 env :
@@ -79,21 +73,21 @@ jobs:
7973 security unlock-keychain -p $MACOS_KEYCHAIN_PWD build.keychain
8074 security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
8175 security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $MACOS_KEYCHAIN_PWD build.keychain
82- /usr/bin/codesign --deep --force --verify --verbose --sign "$MACOS_CODESIGN_IDENT" --timestamp --options runtime /tmp/CEmu-nightly_mac_qt ${{matrix.qtvershort }}/CEmu.app
76+ /usr/bin/codesign --deep --force --verify --verbose --sign "$MACOS_CODESIGN_IDENT" --timestamp --options runtime /tmp/CEmu-nightly_mac_ ${{matrix.archname }}/CEmu.app
8377
8478 - name : " Create the DMG"
8579 run : |
8680 brew install create-dmg || brew install create-dmg; # we try twice because sometimes it fails...
8781 # The codesign variable may be empty (for forks) but that's fine, create-dmg only does code-signing if it's not empty.
8882 createDmgArgs="--codesign '${{ secrets.MACOS_CODESIGN_IDENT }}' \
89- --volname 'CEmu-nightly Qt ${{matrix.qtvershort }}' \
83+ --volname 'CEmu-nightly ${{matrix.archname }}' \
9084 --window-pos 200 120 \
9185 --window-size 600 400 \
9286 --icon-size 64 \
9387 --icon 'CEmu.app' 125 200 \
9488 --app-drop-link 400 200 \
95- 'CEmu-nightly_mac_qt ${{matrix.qtvershort }}.dmg' \
96- '/tmp/CEmu-nightly_mac_qt ${{matrix.qtvershort }}/'"
89+ 'CEmu-nightly_mac_ ${{matrix.archname }}.dmg' \
90+ '/tmp/CEmu-nightly_mac_ ${{matrix.archname }}/'"
9791 eval "create-dmg $createDmgArgs" || eval "create-dmg $createDmgArgs" # We also retry just in case...
9892
9993 - name : " [macOS] Notarize and staple DMG"
@@ -105,14 +99,14 @@ jobs:
10599 APPLE_NOTARIZATION_TEAMID : ${{ secrets.APPLE_NOTARIZATION_TEAMID }}
106100 run : |
107101 xcrun notarytool store-credentials "notarytool-profile" --apple-id "$APPLE_NOTARIZATION_USERNAME" --team-id "$APPLE_NOTARIZATION_TEAMID" --password "$APPLE_NOTARIZATION_PASSWORD"
108- xcrun notarytool submit "CEmu-nightly_mac_qt ${{matrix.qtvershort }}.dmg" --keychain-profile "notarytool-profile" --wait
109- xcrun stapler staple "CEmu-nightly_mac_qt ${{matrix.qtvershort }}.dmg"
102+ xcrun notarytool submit "CEmu-nightly_mac_ ${{matrix.archname }}.dmg" --keychain-profile "notarytool-profile" --wait
103+ xcrun stapler staple "CEmu-nightly_mac_ ${{matrix.archname }}.dmg"
110104
111105 - name : Upload dmg as artifact
112106 uses : actions/upload-artifact@v4
113107 with :
114- name : CEmu-nightly_mac_qt ${{matrix.qtvershort }}
115- path : CEmu-nightly_mac_qt ${{matrix.qtvershort }}.dmg
108+ name : CEmu-nightly_mac_ ${{matrix.archname }}
109+ path : CEmu-nightly_mac_ ${{matrix.archname }}.dmg
116110
117111 - name : Update nightly release
118112 if : github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
@@ -122,4 +116,4 @@ jobs:
122116 prerelease : true
123117 token : ${{secrets.GITHUB_TOKEN}}
124118 files : |
125- CEmu-nightly_mac_qt ${{matrix.qtvershort }}.dmg
119+ CEmu-nightly_mac_ ${{matrix.archname }}.dmg
0 commit comments