2323 runs-on : " ${{ matrix.os }}"
2424 env :
2525 RUST_BACKTRACE : 1
26+
27+ # NOTE: tests that configure a custom runner must add that runner to
28+ # the `runner` function in tests/quick.rs and tests/recover.rs.
29+
2630 # i686-unknown-linux-gnu
2731 CARGO_TARGET_I686_UNKNOWN_LINUX_GNU_LINKER : i686-linux-gnu-gcc
2832 # s390x-unknown-linux-gnu
@@ -60,16 +64,16 @@ jobs:
6064 - target : " i686-unknown-linux-gnu"
6165 os : ubuntu-latest
6266 codecov : true
63- packages : gcc-i686-linux-gnu
67+ apt- packages : gcc-i686-linux-gnu
6468
6569 - target : " s390x-unknown-linux-gnu"
6670 os : ubuntu-latest
6771 codecov : false
68- packages : gcc-s390x-linux-gnu qemu-user qemu-user-static libc6-dev-s390x-cross qemu-system- s390x
72+ apt- packages : qemu-user qemu-user-static libc6-dev-s390x-cross gcc- s390x-linux-gnu
6973
7074 - target : " wasm32-wasip1"
7175 os : ubuntu-latest
72- flags : " -p libbz2-rs-sys -p test-libbz2-rs-sys"
76+ packages : " -p libbz2-rs-sys -p test-libbz2-rs-sys"
7377 codecov : false
7478
7579 - target : " x86_64-apple-darwin"
@@ -110,10 +114,10 @@ jobs:
110114 with :
111115 tool : cargo-llvm-cov,cargo-nextest
112116 - name : Cache apt packages
113- if : matrix.packages != ''
117+ if : matrix.apt- packages != ''
114118 uses : awalsh128/cache-apt-pkgs-action@v1
115119 with :
116- packages : " ${{ matrix.packages }}"
120+ packages : " ${{ matrix.apt- packages }}"
117121 version : 2
118122 - name : Download wasmtime & wasi-sdk
119123 if : ${{ contains(matrix.target, 'wasm') }}
@@ -123,7 +127,8 @@ jobs:
123127 curl -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/wasi-sdk-24.0-x86_64-linux.tar.gz | tar xz --directory /tmp
124128
125129 - name : cargo build
126- run : cargo build --target ${{matrix.target}} ${{ matrix.flags || '--workspace' }}
130+ run : cargo build --target ${{matrix.target}} ${{ matrix.packages || '--workspace' }}
131+ if : ${{ matrix.target == 's390x-unknown-linux-gnu' }}
127132 - name : cargo build (no_std)
128133 run : cargo rustc --target ${{matrix.target}} -p libbz2-rs-sys --lib --no-default-features --crate-type rlib
129134 env :
@@ -135,10 +140,10 @@ jobs:
135140
136141 - name : cargo llvm-cov nextest
137142 if : matrix.codecov
138- run : cargo llvm-cov nextest --lcov --output-path lcov.info --ignore-filename-regex "test-libz|dynamic-libz" --target ${{matrix.target}} ${{ matrix.flags || '--workspace' }} --no-fail-fast
143+ run : cargo llvm-cov nextest --lcov --output-path lcov.info --ignore-filename-regex "test-libz|dynamic-libz" --target ${{matrix.target}} ${{ matrix.packages || '--workspace' }} --no-fail-fast
139144 - name : cargo nextest
140145 if : matrix.codecov == false
141- run : cargo nextest run --target ${{matrix.target}} ${{ matrix.flags || '--workspace' }} --no-fail-fast
146+ run : cargo nextest run --target ${{matrix.target}} ${{ matrix.packages || '--workspace' }} --no-fail-fast
142147
143148 - name : Upload coverage to Codecov
144149 uses : codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
0 commit comments