Skip to content

Commit

Permalink
Merge pull request #483 from rhysd/fix-ci
Browse files Browse the repository at this point in the history
Automate checking 'last 3 Rust versions' on CI
  • Loading branch information
Enselic committed Jul 21, 2023
2 parents f0ece85 + 464cc87 commit b8f7eb6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,17 @@ on:
branches: [ master ]

env:
MIN_SUPPORTED_RUST_VERSION: "1.64" # MSRV policy = last three versions of stable
CARGO_TERM_COLOR: always

jobs:
min_version:
name: Minimum supported rust version
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}
default: true
profile: minimal
toolchain: stable minus 2 releases # MSRV policy = last three versions of stable
components: clippy
- name: Run cargo clippy
run: |
Expand All @@ -41,16 +38,17 @@ jobs:
name: Documentation checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: RUSTDOCFLAGS='--deny warnings' cargo doc --no-deps --document-private-items --all-features

build-and-test:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
- name: Build
run: |
cargo build
Expand Down

0 comments on commit b8f7eb6

Please sign in to comment.