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 @@ -308,6 +308,31 @@ jobs:
308308 GIX_TEST_IGNORE_ARCHIVES : ' 1'
309309 run : cargo nextest run --workspace --no-fail-fast
310310
311+ # TODO: If this is kept, then remove `fail-fast: false`; run only a subset of the tests, unless
312+ # building and running the whole test suite is fast; install the cross target early via
313+ # `dtolnay/rust-toolchain`, listing it as an additional target; and add a `Swatinem/rust-cache`
314+ # step to cache dependencies.
315+ test-cross :
316+ runs-on : ubuntu-latest
317+
318+ strategy :
319+ matrix :
320+ moniker : [ android, s390x ]
321+ fail-fast : false
322+
323+ steps :
324+ - uses : actions/checkout@v4
325+ - uses : dtolnay/rust-toolchain@stable
326+ - uses : extractions/setup-just@v3
327+ - name : Install cross
328+ uses : taiki-e/install-action@v2
329+ with :
330+ tool : cross
331+ - name : Test (unit)
332+ env :
333+ RUST_BACKTRACE : ' 1'
334+ run : just cross-test-${{ moniker }}
335+
311336 lint :
312337 runs-on : ubuntu-latest
313338
@@ -445,6 +470,7 @@ jobs:
445470 env :
446471 # List all jobs that are intended NOT to block PR auto-merge here.
447472 EXPECTED_NONBLOCKING_JOBS : |-
473+ test-cross
448474 cargo-deny-advisories
449475 wasm
450476 tests-pass
You can’t perform that action at this time.
0 commit comments