Skip to content

Commit eeb5279

Browse files
committed
Start on test-cross CI job definition
This *should* be able to run as written, but it can be improved.
1 parent a6afbfb commit eeb5279

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)