Skip to content

Commit 2067bb7

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 d8691a8 commit 2067bb7

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
@@ -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

0 commit comments

Comments
 (0)