Skip to content

Commit 635b7c9

Browse files
committed
Update CI
1 parent a331125 commit 635b7c9

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/rust.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,32 @@ jobs:
2626
- uses: dtolnay/rust-toolchain@master
2727
with:
2828
toolchain: ${{ matrix.rust }}
29+
- run: RUSTFLAGS="-D warnings" cargo check --locked
30+
31+
check-notlocked:
32+
name: Check (not locked)
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: dtolnay/rust-toolchain@stable
2937
- name: Cargo update
3038
run: cargo update
31-
- run: cargo check
39+
- run: RUSTFLAGS="-D warnings" cargo check
3240

3341
test_features:
3442
name: Test suite (with features)
3543
runs-on: ubuntu-latest
3644
strategy:
3745
matrix:
3846
features:
47+
- --no-default-features
3948
- --features=default
4049
- --all-features
4150
steps:
4251
- uses: actions/checkout@v4
4352
- name: Install stable toolchain
4453
uses: dtolnay/rust-toolchain@stable
45-
- run: cargo test ${{ matrix.features }}
46-
47-
no_std:
48-
name: no-std
49-
runs-on: ubuntu-latest
50-
steps:
51-
- uses: actions/checkout@v4
52-
- uses: dtolnay/rust-toolchain@stable
53-
- run: RUSTFLAGS="-D warnings" cargo check --no-default-features
54+
- run: cargo test --locked ${{ matrix.features }}
5455

5556
fmt:
5657
name: Rustfmt
@@ -70,7 +71,7 @@ jobs:
7071
- uses: dtolnay/rust-toolchain@nightly
7172
with:
7273
components: clippy
73-
- run: cargo clippy --all-features -- -D warnings
74+
- run: cargo clippy --locked --all-features -- -D warnings
7475

7576
doc:
7677
name: Build documentation

0 commit comments

Comments
 (0)