File tree 1 file changed +6
-13
lines changed
1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
pull_request :
6
6
7
+ env :
8
+ # minimum supported rust version
9
+ MSRV : 1.46.0
10
+
7
11
jobs :
8
12
backend :
9
13
name : Backend
10
14
runs-on : ubuntu-18.04
11
- strategy :
12
- # TODO: [ci] should be true if GitHub Actions supports ""allow failures" on matrix
13
- fail-fast : false
14
- matrix :
15
- rust :
16
- - stable
17
- - beta
18
- - nightly
19
15
20
16
env :
21
17
CARGO_INCREMENTAL : 0
@@ -24,21 +20,18 @@ jobs:
24
20
steps :
25
21
- uses : actions/checkout@v2
26
22
27
- - name : Install ${{ matrix.rust }} Rust
23
+ - name : Install Rust v ${{ env.MSRV }}
28
24
run : |
29
- rustup update ${{ matrix.rust }}
30
- rustup default ${{ matrix.rust }}
25
+ rustup default ${{ env.MSRV }}
31
26
32
27
- name : Install lint tools
33
- if : matrix.rust == 'stable'
34
28
run : |
35
29
rustup component add rustfmt
36
30
rustup component add clippy
37
31
38
32
-
uses :
Swatinem/[email protected]
39
33
40
34
- name : Lint
41
- if : matrix.rust == 'stable'
42
35
run : |
43
36
cargo fmt -- --check
44
37
cargo clippy --all-targets --all-features --all
You can’t perform that action at this time.
0 commit comments