chore(build): Add cargo-deny CI workflow and configuration
This commit is contained in:
committed by
James Nugent
parent
85ef18f8b7
commit
fbd91c3773
@@ -33,6 +33,27 @@ jobs:
|
||||
- name: Check all targets
|
||||
run: cargo check --all --all-targets --all-features
|
||||
|
||||
deny-check:
|
||||
name: cargo-deny check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: download cargo-deny
|
||||
shell: bash
|
||||
env:
|
||||
DVS: "0.4.0"
|
||||
DREPO: EmbarkStudios/cargo-deny
|
||||
TARGET: x86_64-unknown-linux-musl
|
||||
run: |
|
||||
temp_archive=$(mktemp --suffix=.tar.gz)
|
||||
curl -L --output "$temp_archive" https://github.com/$DREPO/releases/download/$DVS/cargo-deny-$DVS-$TARGET.tar.gz
|
||||
|
||||
tar -xzvf "$temp_archive" -C . --strip-components=1 --wildcards "*/cargo-deny"
|
||||
- name: cargo-deny check licenses
|
||||
run: ./cargo-deny -L debug check license
|
||||
- name: cargo-deny check bans
|
||||
run: ./cargo-deny -L debug check ban
|
||||
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
|
||||
Reference in New Issue
Block a user