Skip to content

Commit f1af4cf

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 aed521c commit f1af4cf

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
@@ -307,6 +307,31 @@ jobs:
307307
GIX_TEST_IGNORE_ARCHIVES: '1'
308308
run: cargo nextest run --workspace --no-fail-fast
309309

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+
310335
lint:
311336
runs-on: ubuntu-latest
312337

@@ -444,6 +469,7 @@ jobs:
444469
env:
445470
# List all jobs that are intended NOT to block PR auto-merge here.
446471
EXPECTED_NONBLOCKING_JOBS: |-
472+
test-cross
447473
cargo-deny-advisories
448474
wasm
449475
tests-pass

0 commit comments

Comments
 (0)