51
51
- name : Cache dependencies
52
52
uses : actions/cache@v4
53
53
with :
54
- path : prefix
54
+ path : deps- prefix-linux-${{ matrix.arch }}
55
55
key : ${{ github.job }}-${{ matrix.arch }}-deps
56
56
- name : Run build
57
57
run : other/deploy/linux.sh "${{ matrix.arch }}"
@@ -108,12 +108,10 @@ jobs:
108
108
- uses : actions/checkout@v4
109
109
with :
110
110
submodules : recursive
111
- - name : Install build tools
112
- run : brew install coreutils ninja yasm
113
111
- name : Cache dependencies
114
112
uses : actions/cache@v4
115
113
with :
116
- path : prefix
114
+ path : deps- prefix-macos-${{ matrix.arch }}
117
115
key : ${{ github.job }}-${{ matrix.arch }}-deps
118
116
- name : Run build
119
117
run : other/deploy/macos.sh "${{ matrix.arch }}"
@@ -164,36 +162,34 @@ jobs:
164
162
needs : [update-nightly-tag]
165
163
strategy :
166
164
matrix :
167
- arch : [arm64, armv7, armv7s, i386, x86_64]
165
+ target : [ios- arm64, ios- armv7, ios- armv7s, iphonesimulator-arm64, iphonesimulator- x86_64]
168
166
runs-on : ' macos-14'
169
167
steps :
170
168
- uses : actions/checkout@v4
171
169
with :
172
170
submodules : recursive
173
- - name : Install build tools
174
- run : brew install coreutils ninja yasm
175
171
- name : Cache dependencies
176
172
uses : actions/cache@v4
177
173
with :
178
- path : prefix
179
- key : ${{ github.job }}-${{ matrix.arch }}-deps
174
+ path : deps- prefix-${{ matrix.target }}
175
+ key : ${{ github.job }}-${{ matrix.target }}-deps
180
176
- name : Run build
181
- run : other/deploy/ios.sh "${{ matrix.arch }}"
177
+ run : other/deploy/ios.sh "${{ matrix.target }}"
182
178
- name : Upload artifacts
183
179
uses : actions/upload-artifact@v4
184
180
with :
185
- name : toxcore-ios- ${{ matrix.arch }}
186
- path : toxcore-ios- ${{ matrix.arch }}
181
+ name : toxcore-${{ matrix.target }}
182
+ path : toxcore-${{ matrix.target }}
187
183
- name : Get tag name for release file name
188
184
if : contains(github.ref, 'refs/tags/v')
189
185
id : get_version
190
186
run : |
191
187
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
193
189
- name : Create tarball for release upload
194
190
if : contains(github.ref, 'refs/tags/v')
195
191
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 }}
197
193
sha256sum "${{ steps.get_version.outputs.release_tarball }}" > "${{ steps.get_version.outputs.release_tarball }}.sha256"
198
194
- name : Upload to versioned release
199
195
if : contains(github.ref, 'refs/tags/v')
@@ -206,8 +202,8 @@ jobs:
206
202
- name : Create tarball for nightly upload
207
203
if : github.event_name == 'push' && github.ref == 'refs/heads/master'
208
204
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
211
207
- name : Upload to nightly release
212
208
uses : ncipollo/release-action@v1
213
209
if : github.event_name == 'push' && github.ref == 'refs/heads/master'
@@ -219,7 +215,7 @@ jobs:
219
215
prerelease : true
220
216
replacesArtifacts : true
221
217
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"
223
219
224
220
build-android :
225
221
name : Android
@@ -232,12 +228,10 @@ jobs:
232
228
- uses : actions/checkout@v4
233
229
with :
234
230
submodules : recursive
235
- - name : Install build tools
236
- run : sudo apt-get install -y --no-install-recommends ninja-build yasm
237
231
- name : Cache dependencies
238
232
uses : actions/cache@v4
239
233
with :
240
- path : prefix
234
+ path : deps- prefix-android-${{ matrix.arch }}
241
235
key : ${{ github.job }}-${{ matrix.arch }}-deps
242
236
- name : Run build
243
237
run : other/deploy/android.sh "${{ matrix.arch }}"
0 commit comments