File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,31 @@ jobs:
307
307
GIX_TEST_IGNORE_ARCHIVES : ' 1'
308
308
run : cargo nextest run --workspace --no-fail-fast
309
309
310
+ # TODO: If this is kept, then remove `fail-fast: false`; run only a subset of the tests, unless
311
+ # building and running the whole test suite is fast; install the cross target early via
312
+ # `dtolnay/rust-toolchain`, listing it as an additional target; and add a `Swatinem/rust-cache`
313
+ # step to cache dependencies.
314
+ test-cross :
315
+ runs-on : ubuntu-latest
316
+
317
+ strategy :
318
+ matrix :
319
+ moniker : [ android, s390x ]
320
+ fail-fast : false
321
+
322
+ steps :
323
+ - uses : actions/checkout@v4
324
+ - uses : dtolnay/rust-toolchain@stable
325
+ - uses : extractions/setup-just@v3
326
+ - name : Install cross
327
+ uses : taiki-e/install-action@v2
328
+ with :
329
+ tool : cross
330
+ - name : Test (unit)
331
+ env :
332
+ RUST_BACKTRACE : ' 1'
333
+ run : just cross-test-${{ moniker }}
334
+
310
335
lint :
311
336
runs-on : ubuntu-latest
312
337
@@ -444,6 +469,7 @@ jobs:
444
469
env :
445
470
# List all jobs that are intended NOT to block PR auto-merge here.
446
471
EXPECTED_NONBLOCKING_JOBS : |-
472
+ test-cross
447
473
cargo-deny-advisories
448
474
wasm
449
475
tests-pass
You can’t perform that action at this time.
0 commit comments