Skip to content

CI: prospective fix for MSRV build #49

CI: prospective fix for MSRV build

CI: prospective fix for MSRV build #49

Workflow file for this run

name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
rust:
- stable
- nightly
- 1.65.0
os:
- ubuntu-latest
- macos-11
- windows-2022
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Install nightly for minimal-versions
if: matrix.rust == '1.65.0'
uses: dtolnay/rust-toolchain@nightly
- name: Generate minimal-versions lockfile
if: matrix.rust == '1.65.0'
run: cargo +nightly -Z minimal-versions generate-lockfile
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run tests (release)
run: cargo test --release --verbose