Skip to content

Merge pull request #147 from shepmaster/old-msrv #97

Merge pull request #147 from shepmaster/old-msrv

Merge pull request #147 from shepmaster/old-msrv #97

Workflow file for this run

on: [push, pull_request]
name: Continuous integration
jobs:
primary:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- run: cargo build
- run: cargo test
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings
secondary:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- beta
- nightly
- 1.31.0
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo update
# This is the version last compatible with 1.31
- run: |-
cargo update -p backtrace --precise 0.3.35
cargo update -p cc --precise 1.0.37
cargo update -p libc --precise 0.2.45
cargo update -p rustc-demangle --precise 0.1.4
if: matrix.rust == '1.31.0'
- run: cargo build
# It's not worth making the tests run on 1.31 -- building the
# code is enough.
- run: cargo test
if: matrix.rust != '1.31.0'
windows:
runs-on: windows-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo build
- run: cargo test