Skip to content

Commit f1438f2

Browse files
committed
Add cargo-deny check to CI
This config protects from: * duplicate crates * copy-left licenses in the dependency tree * RUSTSEC advisories Note we need to check in Cargo.lock for this to work.
1 parent 1251304 commit f1438f2

File tree

6 files changed

+1519
-2
lines changed

6 files changed

+1519
-2
lines changed

.github/workflows/cargo.yml

+30
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,33 @@ jobs:
6464
run: cargo doc --no-deps
6565
env:
6666
RUSTDOCFLAGS: -Dwarnings
67+
68+
cargo-deny:
69+
name: cargo-deny
70+
71+
# TODO: remove this matrix when https://github.com/EmbarkStudios/cargo-deny/issues/324 is resolved
72+
strategy:
73+
fail-fast: false
74+
matrix:
75+
platform:
76+
- aarch64-apple-ios
77+
- aarch64-linux-android
78+
- i686-pc-windows-gnu
79+
- i686-pc-windows-msvc
80+
- i686-unknown-linux-gnu
81+
- wasm32-unknown-unknown
82+
- x86_64-apple-darwin
83+
- x86_64-apple-ios
84+
- x86_64-pc-windows-gnu
85+
- x86_64-pc-windows-msvc
86+
- x86_64-unknown-linux-gnu
87+
- x86_64-unknown-redox
88+
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v3
92+
- uses: EmbarkStudios/cargo-deny-action@v1
93+
with:
94+
command: check
95+
log-level: error
96+
arguments: --all-features --target ${{ matrix.platform }}

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ target
22
chrome-user-data-dir
33
.DS_Store
44
fuzz
5-
Cargo.lock
65
tracing*
76
*.svg
87
xamples

0 commit comments

Comments
 (0)