Skip to content

Commit 02876bc

Browse files
committed
experiment: don't duplicate the MSRV
1 parent 230f7d7 commit 02876bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,13 @@ jobs:
5151
features: ["", --features serde, --features tokio-1]
5252
steps:
5353
- uses: actions/checkout@master
54+
- name: Get MSRV from Cargo.toml
55+
run: |
56+
MSRV=$(grep 'rust-version' Cargo.toml | sed 's/.*= *"\(.*\)".*/\1/')
57+
echo "MSRV=$MSRV" >> $GITHUB_ENV
5458
- uses: dtolnay/rust-toolchain@master
5559
with:
56-
toolchain: 1.70.0
60+
toolchain: ${{ env.MSRV }}
5761
- uses: taiki-e/install-action@cargo-no-dev-deps
5862
- run: cargo no-dev-deps check --all --all-targets ${{ matrix.features }}
5963

0 commit comments

Comments
 (0)