Skip to content

Commit 1a0ef2a

Browse files
committed
CI for cargo-deny
1 parent 8b976c3 commit 1a0ef2a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/full-ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ env:
3333
# Local variables
3434
# Note: using variables is limited at the moment, see https://github.com/actions/runner/issues/480
3535
GDRUST_FEATURES: "gdnative/async,gdnative/serde"
36+
CARGO_DENY_VERSION: "0.11.0"
3637

3738
on:
3839
push:
@@ -78,6 +79,21 @@ jobs:
7879
- name: "Check clippy"
7980
run: cargo clippy --workspace --features ${GDRUST_FEATURES} -- -D clippy::style -D clippy::complexity -D clippy::perf -D clippy::dbg_macro -D clippy::todo -D clippy::unimplemented;
8081

82+
cargo-deny:
83+
runs-on: ubuntu-latest
84+
needs: rustfmt
85+
steps:
86+
- uses: actions/checkout@v2
87+
# Note: manually downloading is ~30s faster than https://github.com/EmbarkStudios/cargo-deny-action
88+
- name: "Install cargo-deny"
89+
run: |
90+
wget --no-verbose https://github.com/EmbarkStudios/cargo-deny/releases/download/$CARGO_DENY_VERSION/cargo-deny-$CARGO_DENY_VERSION-x86_64-unknown-linux-musl.tar.gz -O cargo-deny.tar.gz
91+
tar -zxvf cargo-deny.tar.gz
92+
mkdir -p $HOME/.cargo/bin
93+
mv cargo-deny-$CARGO_DENY_VERSION-x86_64-unknown-linux-musl/cargo-deny $HOME/.cargo/bin
94+
- name: "Check cargo-deny"
95+
run: cargo deny check --config tools/deny.toml
96+
8197
test:
8298
name: test-${{ matrix.os.name }}${{ matrix.rust.postfix }}
8399
needs: rustfmt
@@ -271,6 +287,7 @@ jobs:
271287
needs:
272288
#- rustfmt
273289
- clippy
290+
- cargo-deny
274291
- test
275292
- integration-test-godot
276293
- build-release

0 commit comments

Comments
 (0)