Run cargo-deny on a matrix of targets (#2852)

* Run cargo-deny on a matrix of targets

* Try rust-cache

* Restrict the number of OSes
This commit is contained in:
Emil Ernerfeldt 2023-03-30 09:12:11 +02:00 committed by GitHub
parent b1f837ca2f
commit b8816d6988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 1 deletions

View File

@ -159,13 +159,27 @@ jobs:
# ---------------------------------------------------------------------------
cargo-deny:
name: cargo deny
strategy:
fail-fast: false
matrix:
include:
- target: aarch64-apple-darwin
- target: aarch64-linux-android
- target: wasm32-unknown-unknown
- target: x86_64-pc-windows-msvc
- target: x86_64-unknown-linux-gnu
# - target: x86_64-unknown-linux-musl
name: cargo-deny ${{ matrix.target }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
with:
rust-version: "1.65.0"
log-level: error
command: check
arguments: ${{ matrix.flags }} --target ${{ matrix.target }}
# ---------------------------------------------------------------------------