File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 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
3738on :
3839 push :
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
You can’t perform that action at this time.
0 commit comments