5
5
branches : [ master, feature/github-actions ]
6
6
pull_request :
7
7
branches : [ master, feature/github-actions ]
8
- release :
9
- types : [published]
10
8
11
9
jobs :
12
10
build :
@@ -55,16 +53,16 @@ jobs:
55
53
with :
56
54
cmakeListsTxtPath : ' ${{ github.workspace }}/gui/qt/CMakeLists.txt'
57
55
configurePreset : ' Mac-${{ matrix.arch }}-${{ matrix.qtver }}'
58
- configurePresetAdditionalArgs : " ['-DDEPS_RELEASE_ONLY=ON', '-DSHORT_VERSION=v2.0']"
56
+ configurePresetAdditionalArgs : " ['-DDEPS_RELEASE_ONLY=ON', '-DSHORT_VERSION=v2.0', '-DIS_OFFICIAL_RELEASE_VERSION=ON' ]"
59
57
buildPreset : ' Mac-${{ matrix.arch }}-${{ matrix.qtver }}-${{ matrix.config }}'
60
58
env :
61
59
VCPKG_DEFAULT_HOST_TRIPLET : ${{ matrix.arch }}-osx-release
62
60
VCPKG_FORCE_SYSTEM_BINARIES : 1
63
61
64
62
- name : Move to temp folder
65
63
run : |
66
- mkdir -p /tmp/CEmu-nightly_mac_qt ${{matrix.qtvershort}}/
67
- mv ${{ github.workspace }}/gui/qt/CEmu.build/Mac-${{ matrix.arch }}-${{ matrix.qtver }}/${{ matrix.config }}/CEmu.app /tmp/CEmu-nightly_mac_qt ${{matrix.qtvershort}}/
64
+ mkdir -p /tmp/CEmu-v2.0_mac_qt ${{matrix.qtvershort}}/
65
+ mv ${{ github.workspace }}/gui/qt/CEmu.build/Mac-${{ matrix.arch }}-${{ matrix.qtver }}/${{ matrix.config }}/CEmu.app /tmp/CEmu-v2.0_mac_qt ${{matrix.qtvershort}}/
68
66
69
67
- name : " Codesign CEmu.app"
70
68
env :
@@ -81,21 +79,21 @@ jobs:
81
79
security unlock-keychain -p $MACOS_KEYCHAIN_PWD build.keychain
82
80
security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
83
81
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $MACOS_KEYCHAIN_PWD build.keychain
84
- /usr/bin/codesign --deep --force --verify --verbose --sign "$MACOS_CODESIGN_IDENT" --timestamp --options runtime /tmp/CEmu-nightly_mac_qt ${{matrix.qtvershort}}/CEmu.app
82
+ /usr/bin/codesign --deep --force --verify --verbose --sign "$MACOS_CODESIGN_IDENT" --timestamp --options runtime /tmp/CEmu-v2.0_mac_qt ${{matrix.qtvershort}}/CEmu.app
85
83
86
84
- name : " Create the DMG"
87
85
run : |
88
86
brew install create-dmg || brew install create-dmg; # we try twice because sometimes it fails...
89
87
# The codesign variable may be empty (for forks) but that's fine, create-dmg only does code-signing if it's not empty.
90
88
createDmgArgs="--codesign '${{ secrets.MACOS_CODESIGN_IDENT }}' \
91
- --volname 'CEmu-nightly Qt${{matrix.qtvershort}}' \
89
+ --volname 'CEmu v2.0 Qt${{matrix.qtvershort}}' \
92
90
--window-pos 200 120 \
93
91
--window-size 600 400 \
94
92
--icon-size 64 \
95
93
--icon 'CEmu.app' 125 200 \
96
94
--app-drop-link 400 200 \
97
- 'CEmu-nightly_mac_qt ${{matrix.qtvershort}}.dmg' \
98
- '/tmp/CEmu-nightly_mac_qt ${{matrix.qtvershort}}/'"
95
+ 'CEmu-v2.0_mac_qt ${{matrix.qtvershort}}.dmg' \
96
+ '/tmp/CEmu-v2.0_mac_qt ${{matrix.qtvershort}}/'"
99
97
eval "create-dmg $createDmgArgs" || eval "create-dmg $createDmgArgs" # We also retry just in case...
100
98
101
99
- name : " [macOS] Notarize and staple DMG"
@@ -107,21 +105,11 @@ jobs:
107
105
APPLE_NOTARIZATION_TEAMID : ${{ secrets.APPLE_NOTARIZATION_TEAMID }}
108
106
run : |
109
107
xcrun notarytool store-credentials "notarytool-profile" --apple-id "$APPLE_NOTARIZATION_USERNAME" --team-id "$APPLE_NOTARIZATION_TEAMID" --password "$APPLE_NOTARIZATION_PASSWORD"
110
- xcrun notarytool submit "CEmu-nightly_mac_qt ${{matrix.qtvershort}}.dmg" --keychain-profile "notarytool-profile" --wait
111
- xcrun stapler staple "CEmu-nightly_mac_qt ${{matrix.qtvershort}}.dmg"
108
+ xcrun notarytool submit "CEmu-v2.0_mac_qt ${{matrix.qtvershort}}.dmg" --keychain-profile "notarytool-profile" --wait
109
+ xcrun stapler staple "CEmu-v2.0_mac_qt ${{matrix.qtvershort}}.dmg"
112
110
113
111
- name : Upload dmg as artifact
114
112
uses : actions/upload-artifact@v3
115
113
with :
116
- name : CEmu-nightly_mac_qt${{matrix.qtvershort}}
117
- path : CEmu-nightly_mac_qt${{matrix.qtvershort}}.dmg
118
-
119
- - name : Update nightly release
120
- if : github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
121
- uses : softprops/action-gh-release@d4e8205d7e959a9107da6396278b2f1f07af0f9b # latest as of 2023-01-13
122
- with :
123
- tag_name : nightly
124
- prerelease : true
125
- token : ${{secrets.GITHUB_TOKEN}}
126
- files : |
127
- CEmu-nightly_mac_qt${{matrix.qtvershort}}.dmg
114
+ name : CEmu-v2.0_mac_qt${{matrix.qtvershort}}
115
+ path : CEmu-v2.0_mac_qt${{matrix.qtvershort}}.dmg
0 commit comments