|
33 | 33 | # Local variables
|
34 | 34 | # Note: using variables is limited at the moment, see https://github.com/actions/runner/issues/480
|
35 | 35 | GDRUST_FEATURES: "gdnative/async,gdnative/serde,gdnative_bindings_generator/debug"
|
36 |
| - CARGO_DENY_VERSION: "0.11.0" |
37 |
| - CARGO_DINGHY_VERSION: "0.4.68" |
| 36 | + CARGO_DENY_VERSION: "0.11.4" |
| 37 | + CARGO_DINGHY_VERSION: "0.4.71" |
| 38 | + CARGO_MACHETE_VERSION: "0.3" |
38 | 39 |
|
39 | 40 | on:
|
40 | 41 | push:
|
@@ -80,21 +81,33 @@ jobs:
|
80 | 81 | - name: "Check clippy"
|
81 | 82 | 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
|
82 | 83 |
|
83 |
| - cargo-deny: |
| 84 | + cargo-deny-machete: |
84 | 85 | runs-on: ubuntu-latest
|
85 | 86 | needs: rustfmt
|
86 | 87 | steps:
|
87 | 88 | - uses: actions/checkout@v2
|
| 89 | + |
| 90 | + # Deny |
88 | 91 | # Note: manually downloading is ~30s faster than https://github.com/EmbarkStudios/cargo-deny-action
|
89 | 92 | - name: "Install cargo-deny"
|
90 | 93 | run: |
|
91 | 94 | 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
|
92 | 95 | tar -zxvf cargo-deny.tar.gz
|
93 | 96 | mkdir -p $HOME/.cargo/bin
|
94 | 97 | mv cargo-deny-$CARGO_DENY_VERSION-x86_64-unknown-linux-musl/cargo-deny $HOME/.cargo/bin
|
95 |
| - - name: "Check cargo-deny" |
| 98 | + - name: "Deny non-conforming dependencies" |
96 | 99 | run: cargo deny check --config tools/deny.toml
|
97 | 100 |
|
| 101 | + # Machete |
| 102 | + - name: "Install cargo-machete" |
| 103 | + uses: baptiste0928/cargo-install@v1 |
| 104 | + with: |
| 105 | + crate: cargo-machete |
| 106 | + version: ${{ env.CARGO_MACHETE_VERSION }} |
| 107 | + - name: "Use machete to cut down dependencies" |
| 108 | + run: cargo machete |
| 109 | + |
| 110 | + |
98 | 111 | test:
|
99 | 112 | name: test-${{ matrix.os.name }}${{ matrix.rust.postfix }}
|
100 | 113 | needs: rustfmt
|
@@ -285,7 +298,7 @@ jobs:
|
285 | 298 | needs:
|
286 | 299 | #- rustfmt
|
287 | 300 | - clippy
|
288 |
| - - cargo-deny |
| 301 | + - cargo-deny-machete |
289 | 302 | - test
|
290 | 303 | - integration-test-godot
|
291 | 304 | - build-release
|
|
0 commit comments