Skip to content

Commit ea73b68

Browse files
committed
CI: Add new job msrv
It uses `-Zminimal` to use minimal versions. It also avoids compilation to speedup CI as much as possible. Signed-off-by: Jiahao XU <[email protected]>
1 parent 887ee76 commit ea73b68

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
rust: ["1.63", stable, beta, nightly]
13+
rust: [stable, beta, nightly]
1414
os: [ubuntu-latest, macos-14, windows-latest]
1515
steps:
1616
- uses: actions/checkout@master
1717
- name: Install Rust (rustup)
18-
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
18+
run: |
19+
rustup update ${{ matrix.rust }} --no-self-update
20+
rustup default ${{ matrix.rust }}
1921
shell: bash
2022

21-
- run: cargo +stable update
23+
- run: cargo update
2224

2325
- uses: Swatinem/rust-cache@v2
2426

@@ -79,3 +81,24 @@ jobs:
7981
git -c user.name='ci' -c user.email='ci' commit -m init
8082
git push -f -q https://git:${{ secrets.github_token }}@github.com/${{ github.repository }} HEAD:gh-pages
8183
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
84+
85+
msrv:
86+
runs-on: ${{ matrix.os }}
87+
strategy:
88+
matrix:
89+
os: [ubuntu-latest, macos-14, windows-latest]
90+
env:
91+
MSRV: 1.63
92+
steps:
93+
- uses: actions/checkout@master
94+
- name: Install Rust (rustup)
95+
run: |
96+
rustup update $MSRV --no-self-update
97+
rustup default $MSRV
98+
shell: bash
99+
100+
- run: cargo +nightly update -Zminimal
101+
102+
- uses: Swatinem/rust-cache@v2
103+
104+
- run: cargo check

0 commit comments

Comments
 (0)