Skip to content

Commit 69ebf37

Browse files
committed
Make Cargo-minimal.lock for MSRV ci
1 parent a24ca92 commit 69ebf37

2 files changed

Lines changed: 4139 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ jobs:
3131
- name: Check formatting
3232
if: matrix.check-fmt
3333
run: rustup component add rustfmt && cargo fmt --all -- --check
34-
- name: Pin packages to allow for MSRV
34+
- name: Use minimal lock file for MSRV
3535
if: matrix.msrv
36-
run: |
37-
cargo update -p home --precise "0.5.9" --verbose # home v0.5.11 requires rustc 1.81 or newer
36+
run: cp Cargo-minimal.lock Cargo.lock
3837
- name: Build on Rust ${{ matrix.toolchain }}
39-
run: cargo build --verbose --color always
38+
run: cargo build --verbose --color always --locked
4039
- name: Test on Rust ${{ matrix.toolchain }}
41-
run: cargo test
40+
run: cargo test --locked
4241
- name: Cargo check release on Rust ${{ matrix.toolchain }}
43-
run: cargo check --release
42+
run: cargo check --release --locked
4443
- name: Cargo check doc on Rust ${{ matrix.toolchain }}
45-
run: cargo doc --release
44+
run: cargo doc --release --locked

0 commit comments

Comments
 (0)