File tree 2 files changed +7
-13
lines changed
2 files changed +7
-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
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ description = "Host a conduit based web application on a hyper server"
7
7
repository = " https://github.com/jtgeibel/conduit-hyper"
8
8
readme = " README.md"
9
9
edition = " 2018"
10
+ rust-version = " 1.46.0"
10
11
11
12
[dependencies ]
12
13
bytes = " 1"
You can’t perform that action at this time.
0 commit comments