chore(ci): Switch to use GitHub Action for cargo-deny (#201)
This commit is contained in:
committed by
Lucio Franco
parent
61a770dedf
commit
5e6b1fe487
@@ -38,21 +38,7 @@ jobs:
|
||||
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
|
||||
- uses: EmbarkStudios/cargo-deny-action@v0
|
||||
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
Reference in New Issue
Block a user