Skip to content

Commit 387b9c6

Browse files
committed
Fix msrv: Run msrv checks with minimal versions
Since it is possible to for dependencies to bump MSRV in patch release, msrv checking should use the minimal versions supported by flate2. Users cares deeply about msrv can also pin them to the minimal versions to maintain their current msrv. This would have also help discover bugs in rust-lang#424
1 parent 367ec74 commit 387b9c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ jobs:
8484
steps:
8585
- uses: actions/checkout@v4
8686
- name: Install Rust (rustup)
87-
run: rustup update ${version} --no-self-update && rustup default ${version}
87+
run: |
88+
rustup toolchain install ${version} nightly --profile minimal --no-self-update
89+
rustup default ${version}
90+
cargo +nightly update -Zminimal-versions
8891
shell: bash
8992
- run: cargo build

0 commit comments

Comments
 (0)