Skip to content

Merge pull request #955 from rustsec/cargo-audit-attribution #925

Merge pull request #955 from rustsec/cargo-audit-attribution

Merge pull request #955 from rustsec/cargo-audit-attribution #925

Workflow file for this run

name: platforms
on:
pull_request:
paths:
- ".github/workflows/platforms.yml"
- "platforms/**"
- "Cargo.*"
push:
branches: main
defaults:
run:
working-directory: platforms
env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.40.0 # MSRV
- stable
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: rm ../Cargo.toml # Remove from workspace to support older MSRV
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- run: cargo doc --all-features