5151 - name : Cache dependencies
5252 uses : actions/cache@v4
5353 with :
54- path : prefix
54+ path : deps- prefix-linux-${{ matrix.arch }}
5555 key : ${{ github.job }}-${{ matrix.arch }}-deps
5656 - name : Run build
5757 run : other/deploy/linux.sh "${{ matrix.arch }}"
@@ -108,12 +108,10 @@ jobs:
108108 - uses : actions/checkout@v4
109109 with :
110110 submodules : recursive
111- - name : Install build tools
112- run : brew install coreutils ninja yasm
113111 - name : Cache dependencies
114112 uses : actions/cache@v4
115113 with :
116- path : prefix
114+ path : deps- prefix-macos-${{ matrix.arch }}
117115 key : ${{ github.job }}-${{ matrix.arch }}-deps
118116 - name : Run build
119117 run : other/deploy/macos.sh "${{ matrix.arch }}"
@@ -164,36 +162,34 @@ jobs:
164162 needs : [update-nightly-tag]
165163 strategy :
166164 matrix :
167- arch : [arm64, armv7, armv7s, i386, x86_64]
165+ target : [ios- arm64, ios- armv7, ios- armv7s, iphonesimulator-arm64, iphonesimulator- x86_64]
168166 runs-on : ' macos-14'
169167 steps :
170168 - uses : actions/checkout@v4
171169 with :
172170 submodules : recursive
173- - name : Install build tools
174- run : brew install coreutils ninja yasm
175171 - name : Cache dependencies
176172 uses : actions/cache@v4
177173 with :
178- path : prefix
179- key : ${{ github.job }}-${{ matrix.arch }}-deps
174+ path : deps- prefix-${{ matrix.target }}
175+ key : ${{ github.job }}-${{ matrix.target }}-deps
180176 - name : Run build
181- run : other/deploy/ios.sh "${{ matrix.arch }}"
177+ run : other/deploy/ios.sh "${{ matrix.target }}"
182178 - name : Upload artifacts
183179 uses : actions/upload-artifact@v4
184180 with :
185- name : toxcore-ios- ${{ matrix.arch }}
186- path : toxcore-ios- ${{ matrix.arch }}
181+ name : toxcore-${{ matrix.target }}
182+ path : toxcore-${{ matrix.target }}
187183 - name : Get tag name for release file name
188184 if : contains(github.ref, 'refs/tags/v')
189185 id : get_version
190186 run : |
191187 VERSION="$(echo "$GITHUB_REF" | cut -d / -f 3)"
192- echo "release_tarball=toxcore-$VERSION-ios- ${{ matrix.arch }}.tar.gz" >>$GITHUB_OUTPUT
188+ echo "release_tarball=toxcore-$VERSION-${{ matrix.target }}.tar.gz" >>$GITHUB_OUTPUT
193189 - name : Create tarball for release upload
194190 if : contains(github.ref, 'refs/tags/v')
195191 run : |
196- tar zcf "${{ steps.get_version.outputs.release_tarball }}" toxcore-ios- ${{ matrix.arch }}
192+ tar zcf "${{ steps.get_version.outputs.release_tarball }}" toxcore-${{ matrix.target }}
197193 sha256sum "${{ steps.get_version.outputs.release_tarball }}" > "${{ steps.get_version.outputs.release_tarball }}.sha256"
198194 - name : Upload to versioned release
199195 if : contains(github.ref, 'refs/tags/v')
@@ -206,8 +202,8 @@ jobs:
206202 - name : Create tarball for nightly upload
207203 if : github.event_name == 'push' && github.ref == 'refs/heads/master'
208204 run : |
209- tar zcf toxcore-nightly-ios- ${{ matrix.arch }}.tar.gz toxcore-ios- ${{ matrix.arch }}
210- sha256sum toxcore-nightly-ios- ${{ matrix.arch }}.tar.gz > toxcore-nightly-ios- ${{ matrix.arch }}.tar.gz.sha256
205+ tar zcf toxcore-nightly-${{ matrix.target }}.tar.gz toxcore-${{ matrix.target }}
206+ sha256sum toxcore-nightly-${{ matrix.target }}.tar.gz > toxcore-nightly-${{ matrix.target }}.tar.gz.sha256
211207 - name : Upload to nightly release
212208 uses : ncipollo/release-action@v1
213209 if : github.event_name == 'push' && github.ref == 'refs/heads/master'
@@ -219,7 +215,7 @@ jobs:
219215 prerelease : true
220216 replacesArtifacts : true
221217 token : ${{ secrets.GITHUB_TOKEN }}
222- artifacts : " toxcore-nightly-ios- ${{ matrix.arch }}.tar.gz,toxcore-nightly-ios- ${{ matrix.arch }}.tar.gz.sha256"
218+ artifacts : " toxcore-nightly-${{ matrix.target }}.tar.gz,toxcore-nightly-${{ matrix.target }}.tar.gz.sha256"
223219
224220 build-android :
225221 name : Android
@@ -232,12 +228,10 @@ jobs:
232228 - uses : actions/checkout@v4
233229 with :
234230 submodules : recursive
235- - name : Install build tools
236- run : sudo apt-get install -y --no-install-recommends ninja-build yasm
237231 - name : Cache dependencies
238232 uses : actions/cache@v4
239233 with :
240- path : prefix
234+ path : deps- prefix-android-${{ matrix.arch }}
241235 key : ${{ github.job }}-${{ matrix.arch }}-deps
242236 - name : Run build
243237 run : other/deploy/android.sh "${{ matrix.arch }}"
0 commit comments