Skip to content

Commit 4573fe0

Browse files
committed
fixup! Update CI build images
1 parent c23ddfd commit 4573fe0

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
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:
@@ -67,7 +67,7 @@ jobs:
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:

.github/workflows/msrv.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: dtolnay/rust-toolchain@master
2727
with:
2828
toolchain: ${{ matrix.toolchain }}
29-
- run: cargo check --locked -p backhand
29+
- run: cargo +${{ matrix.toolchain }} check --locked -p backhand
3030

3131
build-test-backhand-cli:
3232
runs-on: ubuntu-24.04
@@ -45,4 +45,4 @@ jobs:
4545
- uses: dtolnay/rust-toolchain@master
4646
with:
4747
toolchain: ${{ matrix.toolchain }}
48-
- run: cargo check --locked -p backhand-cli
48+
- run: cargo +${{ matrix.toolchain }} check --locked -p backhand-cli

0 commit comments

Comments
 (0)