File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,14 @@ jobs:
200
200
201
201
strategy :
202
202
matrix :
203
- target : [ i686-unknown-linux-musl, armv7-linux-androideabi ]
203
+ target :
204
+ - i686-unknown-linux-musl
205
+ - armv7-linux-androideabi
206
+ include :
207
+ - target : i686-unknown-linux-musl
208
+ cargo : cargo
209
+ - target : armv7-linux-androideabi
210
+ cargo : cross
204
211
205
212
steps :
206
213
- uses : actions/checkout@v4
@@ -211,15 +218,17 @@ jobs:
211
218
with :
212
219
toolchain : stable
213
220
targets : ${{ matrix.target }}
214
- - uses : taiki-e/install-action@v2
221
+ - name : Install cross
222
+ if : matrix.cargo == 'cross'
223
+ uses : taiki-e/install-action@v2
215
224
with :
216
225
tool : cross
217
226
- name : check
218
- run : cross check -p gix --target ${{ matrix.target }}
227
+ run : ${{ matrix.cargo }} check -p gix --target ${{ matrix.target }}
219
228
- name : Test (unit)
220
229
# run high-level unit tests that exercise a lot of code while being pure Rust to ease building test binaries.
221
230
# TODO: figure out why `git` doesn't pick up environment configuration so build scripts fail when using `-p gix`.
222
- run : cross test -p gix-hashtable --target ${{ matrix.target }}
231
+ run : ${{ matrix.cargo }} test -p gix-hashtable --target ${{ matrix.target }}
223
232
224
233
lint :
225
234
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments