Skip to content

Commit

Permalink
Merge pull request #26 from Turbo87/msrv
Browse files Browse the repository at this point in the history
Declare minimum supported Rust version
  • Loading branch information
Turbo87 authored Nov 2, 2021
2 parents 2881e3d + 754e699 commit dbcf417
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/rust-cache@v1.3.0

- name: Lint
if: matrix.rust == 'stable'
run: |
cargo fmt -- --check
cargo clippy --all-targets --all-features --all
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "Host a conduit based web application on a hyper server"
repository = "https://github.com/jtgeibel/conduit-hyper"
readme = "README.md"
edition = "2018"
rust-version = "1.46.0"

[dependencies]
bytes = "1"
Expand Down

0 comments on commit dbcf417

Please sign in to comment.