File tree 1 file changed +14
-9
lines changed 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,18 @@ name: CI
2
2
on :
3
3
pull_request :
4
4
push :
5
- branches :
6
- - master
5
+ # branches:
6
+ # - master
7
7
8
+ env :
9
+ MSRV : " 1.70"
8
10
jobs :
9
- check-msrv :
11
+ check :
10
12
name : Check
11
13
strategy :
12
14
matrix :
13
15
toolchain :
14
- - " 1.70 "
16
+ - MSRV
15
17
- stable
16
18
runs-on : ubuntu-latest
17
19
steps :
27
29
- name : Install toolchain
28
30
uses : dtolnay/rust-toolchain@master
29
31
with :
30
- toolchain : ${{ matrix.toolchain}}
32
+ toolchain : ${{ matrix.toolchain == 'MSRV' && env.MSRV || 'stable' }}
31
33
32
34
- uses : Swatinem/rust-cache@v2
33
35
46
48
- name : Remove the rust-toolchain.toml
47
49
run : rm rust-toolchain.toml
48
50
49
- - name : Install stable toolchain
50
- uses : dtolnay/rust-toolchain@stable
51
+ - name : Install MSRV toolchain
52
+ uses : dtolnay/rust-toolchain@master
53
+ with :
54
+ toolchain : " ${{ env.MSRV }}"
51
55
52
56
- uses : Swatinem/rust-cache@v2
53
57
67
71
- name : Remove the rust-toolchain.toml
68
72
run : rm rust-toolchain.toml
69
73
70
- - name : Install stable toolchain
71
- uses : dtolnay/rust-toolchain@stable
74
+ - name : Install MSRV toolchain
75
+ uses : dtolnay/rust-toolchain@master
72
76
with :
77
+ toolchain : " ${{ env.MSRV }}"
73
78
components : rustfmt, clippy
74
79
75
80
- uses : Swatinem/rust-cache@v2
You can’t perform that action at this time.
0 commit comments