Skip to content

Commit 754e699

Browse files
committed
CI: Run with MSRV
1 parent 6f2ada3 commit 754e699

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@ on:
44
push:
55
pull_request:
66

7+
env:
8+
# minimum supported rust version
9+
MSRV: 1.46.0
10+
711
jobs:
812
backend:
913
name: Backend
1014
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
1915

2016
env:
2117
CARGO_INCREMENTAL: 0
@@ -24,21 +20,18 @@ jobs:
2420
steps:
2521
- uses: actions/checkout@v2
2622

27-
- name: Install ${{ matrix.rust }} Rust
23+
- name: Install Rust v${{ env.MSRV }}
2824
run: |
29-
rustup update ${{ matrix.rust }}
30-
rustup default ${{ matrix.rust }}
25+
rustup default ${{ env.MSRV }}
3126
3227
- name: Install lint tools
33-
if: matrix.rust == 'stable'
3428
run: |
3529
rustup component add rustfmt
3630
rustup component add clippy
3731
3832
- uses: Swatinem/[email protected]
3933

4034
- name: Lint
41-
if: matrix.rust == 'stable'
4235
run: |
4336
cargo fmt -- --check
4437
cargo clippy --all-targets --all-features --all

0 commit comments

Comments
 (0)