Skip to content

Commit 82655c3

Browse files
committed
CI: Ensure MSRV of std and no_std are tested independently
1 parent fdf945c commit 82655c3

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: CI
44

55
jobs:
66
check_msrv:
7-
name: Check MSRV (1.71.0)
7+
name: Check MSRV
88
strategy:
99
matrix:
1010
target:
@@ -14,19 +14,22 @@ jobs:
1414
backend: vulkan,d3d12
1515
- os: macos-latest
1616
backend: vulkan,metal
17-
features:
18-
- hashbrown
19-
- std
20-
- hashbrown,std
17+
version:
18+
- msrv: 1.71.0
19+
features: std
20+
- msrv: 1.81.0
21+
features: hashbrown
2122
runs-on: ${{ matrix.target.os }}
2223
steps:
2324
- uses: actions/checkout@v4
2425
- uses: dtolnay/rust-toolchain@nightly
2526
- name: Generate lockfile with minimal dependency versions
2627
run: cargo +nightly generate-lockfile -Zminimal-versions
27-
- uses: dtolnay/[email protected]
28+
- uses: dtolnay/rust-toolchain@master
29+
with:
30+
toolchain: ${{ matrix.version.msrv }}
2831
# Note that examples are exempt from the MSRV check, so that they can use newer Rust features
29-
- run: cargo check --workspace --features ${{ matrix.target.backend }},${{ matrix.features }} --no-default-features
32+
- run: cargo check --workspace --no-default-features --features ${{ matrix.target.backend }},${{ matrix.version.features }} --no-default-features
3033

3134
test:
3235
name: Test Suite
@@ -48,9 +51,9 @@ jobs:
4851
steps:
4952
- uses: actions/checkout@v4
5053
- name: Cargo test all targets
51-
run: cargo test --workspace --all-targets --features ${{ matrix.target.backend }},${{ matrix.features }} --no-default-features
54+
run: cargo test --workspace --all-targets --no-default-features --features ${{ matrix.target.backend }},${{ matrix.features }}
5255
- name: Cargo test docs
53-
run: cargo test --workspace --doc --features ${{ matrix.target.backend }},${{ matrix.features }} --no-default-features
56+
run: cargo test --workspace --doc --no-default-features --features ${{ matrix.target.backend }},${{ matrix.features }}
5457

5558
fmt:
5659
name: Rustfmt
@@ -80,7 +83,7 @@ jobs:
8083
steps:
8184
- uses: actions/checkout@v4
8285
- name: Cargo clippy
83-
run: cargo clippy --workspace --all-targets --features ${{ matrix.target.backend }},${{ matrix.features }} --no-default-features -- -D warnings
86+
run: cargo clippy --workspace --all-targets --no-default-features --features ${{ matrix.target.backend }},${{ matrix.features }} -- -D warnings
8487

8588
doc:
8689
name: Build documentation

0 commit comments

Comments
 (0)