Skip to content

Upgrade GitHub actions to v4. #214

Upgrade GitHub actions to v4.

Upgrade GitHub actions to v4. #214

Workflow file for this run

on: [push, pull_request]
name: Build and run tests
jobs:
build_and_test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
rust:
- stable
- beta
- nightly
- 1.71.0 # MSRV
fail-fast: false
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: "-D warnings"
CARGO_UNSTABLE_SPARSE_REGISTRY: true
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Build with default features
run: cargo build --verbose
- name: Tests with default features
run: cargo test --verbose
- name: Build with all features
run: cargo build --all-features --verbose
- name: Tests with all features
run: cargo test --all-features --verbose