-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from Turbo87/msrv
Declare minimum supported Rust version
- Loading branch information
Showing
2 changed files
with
7 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,14 @@ on: | |
push: | ||
pull_request: | ||
|
||
env: | ||
# minimum supported rust version | ||
MSRV: 1.46.0 | ||
|
||
jobs: | ||
backend: | ||
name: Backend | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
# TODO: [ci] should be true if GitHub Actions supports ""allow failures" on matrix | ||
fail-fast: false | ||
matrix: | ||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
|
@@ -24,21 +20,18 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install ${{ matrix.rust }} Rust | ||
- name: Install Rust v${{ env.MSRV }} | ||
run: | | ||
rustup update ${{ matrix.rust }} | ||
rustup default ${{ matrix.rust }} | ||
rustup default ${{ env.MSRV }} | ||
- name: Install lint tools | ||
if: matrix.rust == 'stable' | ||
run: | | ||
rustup component add rustfmt | ||
rustup component add clippy | ||
- uses: Swatinem/[email protected] | ||
|
||
- name: Lint | ||
if: matrix.rust == 'stable' | ||
run: | | ||
cargo fmt -- --check | ||
cargo clippy --all-targets --all-features --all | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters