Skip to content

Migrate tests to Rust nightly 1.73. #245

Migrate tests to Rust nightly 1.73.

Migrate tests to Rust nightly 1.73. #245

Workflow file for this run

on: [push, pull_request]
name: Build
jobs:
build:
strategy:
matrix:
rust:
- stable
- beta
- nightly
- 1.67.0 # MSRV
fail-fast: false
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
CARGO_UNSTABLE_SPARSE_REGISTRY: true
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Create Cargo.lock file
run: cargo generate-lockfile
- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: cargo-registry-${{ hashFiles('Cargo.toml') }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
cargo-registry-${{ hashFiles('Cargo.toml') }}
cargo-registry
- name: Check Cargo version
run: cargo -V > cargo.version.txt
- name: Cache Cargo target
uses: actions/cache@v3
with:
path: target
key: cargo-target-debug-${{ hashFiles('cargo.version.txt') }}-${{ hashFiles('Cargo.toml') }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
cargo-target-debug-${{ hashFiles('cargo.version.txt') }}-${{ hashFiles('Cargo.toml') }}
cargo-target-debug-${{ hashFiles('cargo.version.txt') }}
- name: Build without features
run: cargo build --all --no-default-features --verbose
- name: Build examples without features
run: cargo build --examples --no-default-features --verbose
- name: Build with default features
run: cargo build --all --verbose
- name: Build examples with default features
run: cargo build --examples --verbose