Skip to content

Commit d2a78f2

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

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/ci.yml

Lines changed: 11 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,20 @@ 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/rust-toolchain@1.71.0
28+
- uses: dtolnay/rust-toolchain@${{ matrix.version.msrv }}
2829
# 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
30+
- run: cargo check --workspace --no-default-features --features ${{ matrix.target.backend }},${{ matrix.version.features }} --no-default-features
3031

3132
test:
3233
name: Test Suite
@@ -48,9 +49,9 @@ jobs:
4849
steps:
4950
- uses: actions/checkout@v4
5051
- name: Cargo test all targets
51-
run: cargo test --workspace --all-targets --features ${{ matrix.target.backend }},${{ matrix.features }} --no-default-features
52+
run: cargo test --workspace --all-targets --no-default-features --features ${{ matrix.target.backend }},${{ matrix.features }}
5253
- name: Cargo test docs
53-
run: cargo test --workspace --doc --features ${{ matrix.target.backend }},${{ matrix.features }} --no-default-features
54+
run: cargo test --workspace --doc --no-default-features --features ${{ matrix.target.backend }},${{ matrix.features }}
5455

5556
fmt:
5657
name: Rustfmt
@@ -80,7 +81,7 @@ jobs:
8081
steps:
8182
- uses: actions/checkout@v4
8283
- name: Cargo clippy
83-
run: cargo clippy --workspace --all-targets --features ${{ matrix.target.backend }},${{ matrix.features }} --no-default-features -- -D warnings
84+
run: cargo clippy --workspace --all-targets --no-default-features --features ${{ matrix.target.backend }},${{ matrix.features }} -- -D warnings
8485

8586
doc:
8687
name: Build documentation

0 commit comments

Comments
 (0)