Skip to content

Commit 662c01b

Browse files
committed
Do not hardcode the MSRV in the workflow
1 parent a9ce7d6 commit 662c01b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/msrv.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818

1919
- name: Run check
2020
run: |
21+
# extract the MSRV
22+
MSRV=$(grep '^rust-version ' Cargo.toml | cut -d= -f2- | tr -d ' "')
2123
# enable the MSRV
22-
rustup default 1.80.1
24+
rustup default "${MSRV}"
2325
cargo check --all-features --all-targets

0 commit comments

Comments
 (0)