Skip to content

Commit facdf56

Browse files
committed
Improve msrv mCI: Use cargo-hack instead of hard-coding msrv in CI
Signed-off-by: Jiahao XU <[email protected]>
1 parent 8ee8e39 commit facdf56

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,16 @@ jobs:
8787
strategy:
8888
matrix:
8989
os: [ubuntu-latest, macos-14, windows-latest]
90-
env:
91-
MSRV: 1.63
9290
steps:
9391
- uses: actions/checkout@master
9492
- name: Install Rust (rustup)
95-
run: |
96-
rustup toolchain install $MSRV --no-self-update --profile minimal
97-
rustup default $MSRV
98-
rustup toolchain install nightly --no-self-update --profile minimal
93+
run: rustup toolchain install nightly --no-self-update --profile minimal
9994
shell: bash
10095

10196
- run: cargo +nightly update -Zminimal-versions
10297

98+
- uses: taiki-e/install-action@cargo-hack
99+
103100
- uses: Swatinem/rust-cache@v2
104101

105-
- run: cargo check
102+
- run: cargo hack check --lib --rust-version --ignore-private

0 commit comments

Comments
 (0)