Skip to content

Commit 0af8e8a

Browse files
committed
ci: Split cargo-deny into its own job
1 parent 5677447 commit 0af8e8a

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/test_rust.yml

+17-6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
3232
build:
3333
needs: changes
34-
if: needs.changes.outputs.should_run== 'true'
34+
if: needs.changes.outputs.should_run == 'true'
3535
name: Test Rust ${{ matrix.rust_version }} / ${{ matrix.os }}
3636
runs-on: ${{ matrix.os }}
3737
continue-on-error: ${{ matrix.rust_version == 'nightly' || matrix.rust_version == 'beta' }}
@@ -103,7 +103,7 @@ jobs:
103103
104104
lints:
105105
needs: changes
106-
if: needs.changes.outputs.should_run== 'true'
106+
if: needs.changes.outputs.should_run == 'true'
107107
name: Lints with Rust ${{ matrix.rust_version }}
108108
runs-on: ubuntu-22.04
109109
continue-on-error: ${{ matrix.rust_version == 'nightly' || matrix.rust_version == 'beta' }}
@@ -133,15 +133,26 @@ jobs:
133133
# Don't fail the build for clippy on nightly, since we get a lot of false-positives
134134
run: cargo clippy --all --all-features --tests ${{ (matrix.rust_version != 'nightly' && '-- -D warnings') || '' }}
135135

136-
- name: Check licensing and duplicates in used crates
137-
if: ${{ matrix.rust_version == 'stable' }}
138-
uses: EmbarkStudios/cargo-deny-action@v1
139-
140136
- name: Check documentation
141137
run: cargo doc --no-deps --all-features
142138
env:
143139
RUSTDOCFLAGS: -D warnings
144140

141+
dependencies:
142+
needs: changes
143+
if: needs.changes.outputs.should_run == 'true'
144+
name: Check dependencies
145+
runs-on: ubuntu-22.04
146+
147+
steps:
148+
- uses: actions/checkout@v4
149+
150+
- name: Install Rust toolchain
151+
uses: dtolnay/rust-toolchain@stable
152+
153+
- name: Check licenses, duplicates, and advisories
154+
uses: EmbarkStudios/cargo-deny-action@v1
155+
145156
check-required:
146157
needs: changes
147158
if: needs.changes.outputs.should_run == 'false'

0 commit comments

Comments
 (0)