Skip to content

fix: usage of archived actions #2

fix: usage of archived actions

fix: usage of archived actions #2

Workflow file for this run

name: Build and test
on:
- push
# Build if requested manually from the Actions tab
- workflow_dispatch
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: --deny warnings
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt -- --check
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo clippy -- -D warnings
permissions:
checks: write
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo install cargo-audit
- name: Audit
run: cargo audit --deny warnings
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable, beta]
include:
- os: ubuntu-latest
rust: nightly
- os: ubuntu-latest
# MSRV. Not considered breaking when this has to be bumped.
# But update `rust-version` in `Cargo.toml`
rust: 1.80.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: cargo install cargo-all-features
- name: Build
run: cargo build-all-features
- name: Test
run: cargo test-all-features