From 46fa0c59ff27a8421f0eacc586f50565329acc9a Mon Sep 17 00:00:00 2001 From: Luke Street Date: Thu, 3 Feb 2022 02:00:36 -0500 Subject: [PATCH] Add cargo deny action to CI --- .github/workflows/build.yaml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 298d38e..f0f902f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,10 +1,28 @@ -name: build +name: Build on: [ push, pull_request ] jobs: - default: - name: Default + check: + name: Check + runs-on: ubuntu-latest + strategy: + matrix: + toolchain: [ stable, 1.51.0, nightly ] + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} + override: true + - uses: EmbarkStudios/cargo-deny-action@v1 + - uses: actions-rs/cargo@v1 + with: + command: check + args: --all-features + + build: + name: Build strategy: matrix: platform: [ ubuntu-latest, macos-latest, windows-latest ] @@ -17,10 +35,6 @@ jobs: with: toolchain: ${{ matrix.toolchain }} override: true - - uses: actions-rs/cargo@v1 - with: - command: check - args: --all-features - uses: actions-rs/cargo@v1 with: command: test