Skip to content

CI: try to produce a minimal version of the .lock file #51

CI: try to produce a minimal version of the .lock file

CI: try to produce a minimal version of the .lock file #51

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
- name: Install old nightly for minimal-versions (produces v3 lockfile)
if: matrix.rust == '1.65.0'
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2024-02-01
- name: Generate minimal-versions lockfile
if: matrix.rust == '1.65.0'
run: cargo +nightly-2024-02-01 -Z minimal-versions generate-lockfile
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run tests (release)
run: cargo test --release --verbose