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 @@ -327,6 +327,31 @@ jobs:
327327 - name : Test (nextest)
328328 run : cargo nextest run --target $env:TARGET --workspace --no-fail-fast size
329329
330+ # TODO: If this is kept, then remove `fail-fast: false`; run only a subset of the tests, unless
331+ # building and running the whole test suite is fast; install the cross target early via
332+ # `dtolnay/rust-toolchain`, listing it as an additional target; and add a `Swatinem/rust-cache`
333+ # step to cache dependencies.
334+ test-cross :
335+ runs-on : ubuntu-latest
336+
337+ strategy :
338+ matrix :
339+ moniker : [ android, s390x ]
340+ fail-fast : false
341+
342+ steps :
343+ - uses : actions/checkout@v4
344+ - uses : dtolnay/rust-toolchain@stable
345+ - uses : extractions/setup-just@v3
346+ - name : Install cross
347+ uses : taiki-e/install-action@v2
348+ with :
349+ tool : cross
350+ - name : Test (unit)
351+ env :
352+ RUST_BACKTRACE : ' 1'
353+ run : just cross-test-${{ matrix.moniker }}
354+
330355 lint :
331356 runs-on : ubuntu-latest
332357
@@ -484,6 +509,7 @@ jobs:
484509 env :
485510 # List all jobs that are intended NOT to block PR auto-merge here.
486511 EXPECTED_NONBLOCKING_JOBS : |-
512+ test-cross
487513 cargo-deny-advisories
488514 wasm
489515 tests-pass
You can’t perform that action at this time.
0 commit comments