@@ -2,8 +2,12 @@ name: Release
22
33on :
44 push :
5- tags :
6- - ' v*'
5+ branches :
6+ - ' **'
7+ # on:
8+ # push:
9+ # tags:
10+ # - 'v*'
711
812env :
913 BUILD_TYPE : Release
1216 macos-universal-build :
1317 runs-on : macos-latest
1418
15- env :
16- APPLE_TEAM_ID : ${{ secrets.APPLE_TEAM_ID }}
17-
1819 steps :
1920 - uses : actions/checkout@v2
2021 with :
@@ -46,139 +47,167 @@ jobs:
4647 p12-password : ${{ secrets.APPLE_CERT_PASSWORD }}
4748
4849 - name : Code Sign VST3
50+ env :
51+ APPLE_TEAM_ID_STR : ${{ secrets.APPLE_TEAM_ID_STR }}
4952 run : |
5053 codesign --deep --force --verify --verbose \
51- --sign "$APPLE_TEAM_ID " ./build/Setekh_artefacts/Release/VST3/Setekh.vst3
54+ --sign "$APPLE_TEAM_ID_STR " ./build/Setekh_artefacts/Release/VST3/Setekh.vst3
5255
5356 - name : Code Sign AU
57+ env :
58+ APPLE_TEAM_ID_STR : ${{ secrets.APPLE_TEAM_ID_STR }}
5459 run : |
5560 codesign --deep --force --verify --verbose \
56- --sign "$APPLE_TEAM_ID" ./build/Setekh_artefacts/Release/AU/Setekh.component
57-
58- - name : Upload
59- uses : actions/upload-artifact@v4
60- with :
61- name : setekh-macos
62- path : |
63- ./build/Setekh_artefacts/Release/AU
64- ./build/Setekh_artefacts/Release/VST3
65- ./build/Setekh_artefacts/Release/readme.txt
66- !./build/Setekh_artefacts/Release/VST3/*.exp
67- !./build/Setekh_artefacts/Release/VST3/*.lib
68-
69- windows-build :
70- runs-on : windows-latest
71-
72- steps :
73- - uses : actions/checkout@v2
74- with :
75- submodules : recursive
76-
77- - name : Upgrade CMake
78- run : |
79- choco install cmake --version=4.0.2 --force --yes
80- cmake --version
61+ --sign "$APPLE_TEAM_ID_STR" ./build/Setekh_artefacts/Release/AU/Setekh.component
8162
82- - name : Configure
83- run : cmake -G "Visual Studio 17 2022" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$env:BUILD_TYPE -S . -B ./build
84-
85- - name : Build
86- run : cmake --build ./build --config $env:BUILD_TYPE
87-
88- - name : Upload
89- uses : actions/upload-artifact@v4
90- with :
91- name : setekh-windows
92- path : |
93- ./build/Setekh_artefacts/Release/VST3
94- ./build/Setekh_artefacts/Release/readme.txt
95- !./build/Setekh_artefacts/Release/VST3/*.exp
96- !./build/Setekh_artefacts/Release/VST3/*.lib
97- !./build/Setekh_artefacts/Release/LV2/*.exp
98- !./build/Setekh_artefacts/Release/LV2/*.lib
99-
100- linux-build :
101- runs-on : ubuntu-latest
102- steps :
103- - uses : actions/checkout@v2
104- with :
105- submodules : recursive
106-
107- - name : Install build deps
108- run : |
109- sudo apt-get update
110- sudo apt-get install libx11-dev libfreetype-dev libfontconfig1-dev libasound2-dev libxrandr-dev libxinerama-dev libxcursor-dev
111-
112- - name : Upgrade CMake
63+ - name : Notarize VST3 + AU
64+ env :
65+ APPLE_ID_EMAIL : ${{ secrets.APPLE_ID_EMAIL }}
66+ APPLE_ID_PASSWORD : ${{ secrets.APPLE_ID_PASSWORD }}
67+ APPLE_TEAM_ID : ${{ secrets.APPLE_TEAM_ID }}
11368 run : |
114- sudo apt-get update
115- sudo apt-get install -y wget
116- wget https://github.com/Kitware/CMake/releases/download/v4.0.2/cmake-4.0.2-linux-x86_64.tar.gz
117- tar -xzf cmake-4.0.2-linux-x86_64.tar.gz
118- sudo cp -r cmake-4.0.2-linux-x86_64/* /usr/local/
119- cmake --version
120-
121- - name : Configure
122- run : cmake -G "Unix Makefiles" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$BUILD_TYPE -S . -B ./build
123-
124- - name : Build
125- run : cmake --build ./build --config $BUILD_TYPE
69+ # Zip both plugins together for notarization
70+ zip -r Setekh_plugins.zip \
71+ ./build/Setekh_artefacts/Release/VST3/Setekh.vst3 \
72+ ./build/Setekh_artefacts/Release/AU/Setekh.component
73+
74+ # Submit to Apple for notarization and wait
75+ xcrun notarytool submit Setekh_plugins.zip \
76+ --apple-id "APPLE_ID_EMAIL" \
77+ --team-id "$APPLE_TEAM_ID" \
78+ --password "APPLE_ID_PASSWORD" \
79+ --wait
80+
81+ # Staple each plugin individually & Verify
82+ xcrun stapler staple ./build/Setekh_artefacts/Release/VST3/Setekh.vst3
83+ xcrun stapler staple ./build/Setekh_artefacts/Release/AU/Setekh.component
84+ spctl -a -vv ./build/Setekh_artefacts/Release/VST3/Setekh.vst3
85+ spctl -a -vv ./build/Setekh_artefacts/Release/AU/Setekh.component
12686
12787 - name : Upload
12888 uses : actions/upload-artifact@v4
12989 with :
130- name : setekh-linux
90+ name : setekh-macos
13191 path : |
132- ./build/Setekh_artefacts/Release/LV2
92+ ./build/Setekh_artefacts/Release/AU
13393 ./build/Setekh_artefacts/Release/VST3
13494 ./build/Setekh_artefacts/Release/readme.txt
13595 !./build/Setekh_artefacts/Release/VST3/*.exp
13696 !./build/Setekh_artefacts/Release/VST3/*.lib
13797
138- package-release :
139- runs-on : ubuntu-latest
140- permissions :
141- contents : write
142- needs : [windows-build, macos-universal-build, linux-build]
143- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
144- strategy :
145- matrix :
146- os : [ windows, macos, linux ]
147- steps :
148- - name : Download ${{ matrix.os }} artifact
149- uses : actions/download-artifact@v4
150- with :
151- name : setekh-${{ matrix.os }}
152- path : artifacts/setekh-${{ matrix.os }}
153-
154- - name : Zip ${{ matrix.os }} artifact
155- run : |
156- TAG_NAME=${GITHUB_REF#refs/tags/}
157- cd artifacts
158- zip -r setekh-${{ matrix.os }}-${TAG_NAME}.zip setekh-${{ matrix.os }}
159-
160- - name : Upload zipped artifact
161- uses : actions/upload-artifact@v4
162- with :
163- name : setekh-${{ matrix.os }}-zipped
164- path : artifacts/setekh-${{ matrix.os }}-*.zip
165-
166- release :
167- runs-on : ubuntu-latest
168- permissions :
169- contents : write
170- needs : package-release
171- steps :
172- - name : Download zipped artifacts
173- uses : actions/download-artifact@v4
174- with :
175- path : artifacts
176-
177- - name : Create Release
178- uses : softprops/action-gh-release@v2
179- with :
180- draft : true
181- tag_name : ${{ github.ref_name }}
182- files : artifacts/**/*.zip
183- env :
184- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
98+ # windows-build:
99+ # runs-on: windows-latest
100+ #
101+ # steps:
102+ # - uses: actions/checkout@v2
103+ # with:
104+ # submodules: recursive
105+ #
106+ # - name: Upgrade CMake
107+ # run: |
108+ # choco install cmake --version=4.0.2 --force --yes
109+ # cmake --version
110+ #
111+ # - name: Configure
112+ # run: cmake -G "Visual Studio 17 2022" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$env:BUILD_TYPE -S . -B ./build
113+ #
114+ # - name: Build
115+ # run: cmake --build ./build --config $env:BUILD_TYPE
116+ #
117+ # - name: Upload
118+ # uses: actions/upload-artifact@v4
119+ # with:
120+ # name: setekh-windows
121+ # path: |
122+ # ./build/Setekh_artefacts/Release/VST3
123+ # ./build/Setekh_artefacts/Release/readme.txt
124+ # !./build/Setekh_artefacts/Release/VST3/*.exp
125+ # !./build/Setekh_artefacts/Release/VST3/*.lib
126+ # !./build/Setekh_artefacts/Release/LV2/*.exp
127+ # !./build/Setekh_artefacts/Release/LV2/*.lib
128+ #
129+ # linux-build:
130+ # runs-on: ubuntu-latest
131+ # steps:
132+ # - uses: actions/checkout@v2
133+ # with:
134+ # submodules: recursive
135+ #
136+ # - name: Install build deps
137+ # run: |
138+ # sudo apt-get update
139+ # sudo apt-get install libx11-dev libfreetype-dev libfontconfig1-dev libasound2-dev libxrandr-dev libxinerama-dev libxcursor-dev
140+ #
141+ # - name: Upgrade CMake
142+ # run: |
143+ # sudo apt-get update
144+ # sudo apt-get install -y wget
145+ # wget https://github.com/Kitware/CMake/releases/download/v4.0.2/cmake-4.0.2-linux-x86_64.tar.gz
146+ # tar -xzf cmake-4.0.2-linux-x86_64.tar.gz
147+ # sudo cp -r cmake-4.0.2-linux-x86_64/* /usr/local/
148+ # cmake --version
149+ #
150+ # - name: Configure
151+ # run: cmake -G "Unix Makefiles" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$BUILD_TYPE -S . -B ./build
152+ #
153+ # - name: Build
154+ # run: cmake --build ./build --config $BUILD_TYPE
155+ #
156+ # - name: Upload
157+ # uses: actions/upload-artifact@v4
158+ # with:
159+ # name: setekh-linux
160+ # path: |
161+ # ./build/Setekh_artefacts/Release/LV2
162+ # ./build/Setekh_artefacts/Release/VST3
163+ # ./build/Setekh_artefacts/Release/readme.txt
164+ # !./build/Setekh_artefacts/Release/VST3/*.exp
165+ # !./build/Setekh_artefacts/Release/VST3/*.lib
166+ #
167+ # package-release:
168+ # runs-on: ubuntu-latest
169+ # permissions:
170+ # contents: write
171+ # needs: [windows-build, macos-universal-build, linux-build]
172+ # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
173+ # strategy:
174+ # matrix:
175+ # os: [ windows, macos, linux ]
176+ # steps:
177+ # - name: Download ${{ matrix.os }} artifact
178+ # uses: actions/download-artifact@v4
179+ # with:
180+ # name: setekh-${{ matrix.os }}
181+ # path: artifacts/setekh-${{ matrix.os }}
182+ #
183+ # - name: Zip ${{ matrix.os }} artifact
184+ # run: |
185+ # TAG_NAME=${GITHUB_REF#refs/tags/}
186+ # cd artifacts
187+ # zip -r setekh-${{ matrix.os }}-${TAG_NAME}.zip setekh-${{ matrix.os }}
188+ #
189+ # - name: Upload zipped artifact
190+ # uses: actions/upload-artifact@v4
191+ # with:
192+ # name: setekh-${{ matrix.os }}-zipped
193+ # path: artifacts/setekh-${{ matrix.os }}-*.zip
194+ #
195+ # release:
196+ # runs-on: ubuntu-latest
197+ # permissions:
198+ # contents: write
199+ # needs: package-release
200+ # steps:
201+ # - name: Download zipped artifacts
202+ # uses: actions/download-artifact@v4
203+ # with:
204+ # path: artifacts
205+ #
206+ # - name: Create Release
207+ # uses: softprops/action-gh-release@v2
208+ # with:
209+ # draft: true
210+ # tag_name: ${{ github.ref_name }}
211+ # files: artifacts/**/*.zip
212+ # env:
213+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments