Skip to content

Commit d7d7848

Browse files
committed
CI: Updates to test MSRV correctly
1 parent ae712f0 commit d7d7848

File tree

3 files changed

+845
-11
lines changed

3 files changed

+845
-11
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ jobs:
1212
features: [--all-features, --no-default-features]
1313
continue-on-error: true
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Run tests
1717
run: cargo test --verbose --release ${{ matrix.features }}
18+
- name: Verify working directory is clean
19+
run: git diff --exit-code
1820

1921
test-32-bit:
2022
name: Test on i686-unknown-linux-gnu with ${{ matrix.features }}
@@ -24,7 +26,7 @@ jobs:
2426
features: [--all-features, --no-default-features]
2527
continue-on-error: true
2628
steps:
27-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
2830
- name: Install cross-platform support dependencies
2931
run: sudo apt install gcc-multilib
3032
- run: rustup target add i686-unknown-linux-gnu
@@ -34,6 +36,8 @@ jobs:
3436
--verbose
3537
--target i686-unknown-linux-gnu
3638
${{ matrix.features }}
39+
- name: Verify working directory is clean
40+
run: git diff --exit-code
3741

3842
no-std:
3943
name: Check no-std target ${{ matrix.target }}
@@ -46,7 +50,7 @@ jobs:
4650
- wasm32-wasi
4751

4852
steps:
49-
- uses: actions/checkout@v3
53+
- uses: actions/checkout@v4
5054
- run: rustup target add ${{ matrix.target }}
5155
- name: Build
5256
run: >
@@ -59,7 +63,7 @@ jobs:
5963
name: Bitrot check
6064
runs-on: ubuntu-latest
6165
steps:
62-
- uses: actions/checkout@v3
66+
- uses: actions/checkout@v4
6367
# Build benchmarks to prevent bitrot
6468
- name: Build benchmarks
6569
run: cargo build --benches --all-features
@@ -68,7 +72,7 @@ jobs:
6872
name: Book tests
6973
runs-on: ubuntu-latest
7074
steps:
71-
- uses: actions/checkout@v3
75+
- uses: actions/checkout@v4
7276
- run: cargo build
7377
- name: Setup mdBook
7478
uses: peaceiris/actions-mdbook@v1
@@ -84,7 +88,7 @@ jobs:
8488
image: xd009642/tarpaulin:develop-nightly
8589
options: --security-opt seccomp=unconfined
8690
steps:
87-
- uses: actions/checkout@v3
91+
- uses: actions/checkout@v4
8892
- name: Generate coverage report
8993
run: cargo tarpaulin --engine llvm --all-features --timeout 600 --out Xml
9094
- name: Upload coverage to Codecov
@@ -94,16 +98,15 @@ jobs:
9498
name: Intra-doc links
9599
runs-on: ubuntu-latest
96100
steps:
97-
- uses: actions/checkout@v3
101+
- uses: actions/checkout@v4
98102
- run: cargo fetch
99103
# Requires #![deny(rustdoc::broken_intra_doc_links)] in crates.
100104
- name: Check intra-doc links
101-
run: cargo doc --document-private-items
105+
run: cargo doc --all-features --document-private-items
102106

103107
fmt:
104108
name: Rustfmt
105-
timeout-minutes: 30
106109
runs-on: ubuntu-latest
107110
steps:
108-
- uses: actions/checkout@v3
111+
- uses: actions/checkout@v4
109112
- run: cargo fmt -- --check

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/target
22
**/*.rs.bk
3-
Cargo.lock
43
.vscode
54
**/*.html

0 commit comments

Comments
 (0)