Skip to content

Commit 6ba0cea

Browse files
committed
refactor(ci): move cargo-deny out of build workflow
1 parent 0d2eae6 commit 6ba0cea

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,6 @@ jobs:
4040
run: cargo clippy -p ${{ inputs.crate-name }} --features ${{ inputs.default-features }} --no-deps
4141
working-directory: ${{ inputs.crate-path }}
4242

43-
cargo-deny:
44-
runs-on: ubuntu-latest
45-
strategy:
46-
matrix:
47-
checks:
48-
- advisories
49-
- bans
50-
continue-on-error: ${{ matrix.checks == 'advisories' }}
51-
steps:
52-
- uses: actions/checkout@v2
53-
- uses: EmbarkStudios/cargo-deny-action@v2
54-
with:
55-
command: check ${{ matrix.checks }}
56-
5743
test:
5844
name: Run Host Tests
5945
runs-on: ubuntu-latest

.github/workflows/deny.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Dependency Checks
2+
on: [push, pull_request]
3+
jobs:
4+
cargo-deny:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
checks:
9+
- advisories
10+
- bans # TODO: Should add other deny checks, once configured
11+
12+
# Prevent sudden announcement of a new advisory from failing ci:
13+
continue-on-error: ${{ matrix.checks == 'advisories' }}
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: EmbarkStudios/cargo-deny-action@v2
18+
with:
19+
command: check ${{ matrix.checks }}

0 commit comments

Comments
 (0)