5050 with :
5151 toolchain : ${{ matrix.toolchain }}
5252 # build lib with cross
53- - run : $BUILD_CMD build ${{ matrix.features }} --target ${{ matrix.job.target }} --release --locked --workspace --lib
53+ - run : $BUILD_CMD +${{ matrix.toolchain }} build ${{ matrix.features }} --target ${{ matrix.job.target }} --release --locked --workspace --lib
5454
5555 # build/test all supported targets for library and bins (skipping slow and squashfs-tools tests)
5656 cross-test :
6767 - { target: arm-unknown-linux-musleabi, os: ubuntu-24.04, use-cross: true }
6868 - { target: armv7-unknown-linux-musleabi, os: ubuntu-24.04, use-cross: true }
6969 - { target: aarch64-unknown-linux-musl, os: ubuntu-24.04, use-cross: true }
70- - { target: x86_64-apple-darwin, os: macos-14 }
70+ - { target: x86_64-apple-darwin, os: macos-14, }
7171 toolchain :
7272 - stable
7373 # msrv of backhand-cli
@@ -92,11 +92,12 @@ jobs:
9292 with :
9393 toolchain : ${{ matrix.toolchain }}
9494 # TODO: really only needed for the matrix variables without use-cross
95- target : ${{ matrix.job.target }}
96- # build lib and bins with cross
97- - run : $BUILD_CMD build ${{ matrix.features }} --target ${{ matrix.job.target }} --release --locked --workspace --features xz-static
95+ targets : ${{ matrix.job.target }}
96+
97+ # build lib and bins with cross or cargo
98+ - run : $BUILD_CMD +${{ matrix.toolchain }} build ${{ matrix.features }} --target ${{ matrix.job.target }} --release --locked --workspace --features xz-static
9899 # test with cross, skipping slow test and tests that use more then qemu default memory without use-cross without use-cross
99- - run : CROSS_CONTAINER_OPTS="--network host" RUST_LOG=info $BUILD_CMD test --workspace --release ${{ matrix.features }} --target ${{ matrix.job.target }} --features xz-static --locked -- --skip slow --skip no_qemu
100+ - run : CROSS_CONTAINER_OPTS="--network host" RUST_LOG=info $BUILD_CMD +${{ matrix.toolchain }} test --workspace --release ${{ matrix.features }} --target ${{ matrix.job.target }} --features xz-static --locked -- --skip slow --skip no_qemu
100101 # build/test all supported on native x86_64 arch for library and bins (all tests)
101102 build-test-native :
102103 runs-on : ubuntu-24.04
@@ -124,9 +125,9 @@ jobs:
124125 with :
125126 toolchain : ${{ matrix.toolchain }}
126127 # build bins
127- - run : cargo build ${{ matrix.features }} --release --locked --workspace
128+ - run : cargo +${{ matrix.toolchain }} build ${{ matrix.features }} --release --locked --workspace
128129 # run tests with native unsquashfs on x86_64-unknown-linux-musl (using Cross.toml)
129- - run : RUST_LOG=info cargo test --workspace --release ${{ matrix.features }} --locked --features __test_unsquashfs -- --skip slow
130+ - run : RUST_LOG=info cargo +${{ matrix.toolchain }} test --workspace --release ${{ matrix.features }} --locked --features __test_unsquashfs -- --skip slow
130131
131132 # fmt and clippy on stable
132133 fmt-clippy-stable :
0 commit comments