Skip to content

Commit

Permalink
Add cargo-deny to CI (#3185)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler authored Nov 30, 2022
1 parent 9c6a60d commit 9bb2d28
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[bans]
multiple-versions = "deny"
skip-tree = [
{ name = "cts_runner" },
{ name = "dummy" },
{ name = "player" },
{ name = "run-wasm" },
{ name = "wgpu-info" },
]
wildcards = "deny"

[licenses]
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"MIT",
"MPL-2.0",
"Unicode-DFS-2016",
"Zlib",
]

[sources]
allow-git = [
"https://github.com/grovesNL/glow",
]
unknown-registry = "deny"
unknown-git = "deny"
required-git-spec = "rev"

[sources.allow-org]
github = [
"gfx-rs"
]
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,31 @@ jobs:
- name: build Deno
run: |
cargo clippy --manifest-path cts_runner/Cargo.toml
cargo-deny-check-advisories:
name: "Run `cargo deny check advisories`"
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3

- name: Run `cargo deny check`
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check advisories
arguments: --all-features --workspace
rust-version: ${{ env.RUST_VERSION }}

cargo-deny-check-rest:
name: "Run `cargo deny check`"
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3

- name: Run `cargo deny check`
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check bans licenses sources
arguments: --all-features --workspace
rust-version: ${{ env.RUST_VERSION }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ winapi = "0.3"
egl = { package = "khronos-egl", version = "4.1" }
# glow = { version = "0.11.2", optional = true }
# TODO: New glow release
glow = { git = "https://github.com/grovesNL/glow/", rev = "c8a011fcd57a5c68cc917ed394baa484bdefc909" }
glow = { git = "https://github.com/grovesNL/glow", rev = "c8a011fcd57a5c68cc917ed394baa484bdefc909" }
glutin = "0.29.1"

# wasm32 dependencies
Expand Down
1 change: 1 addition & 0 deletions run-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "run-wasm"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
1 change: 1 addition & 0 deletions wgpu-info/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
keywords.workspace = true
license.workspace = true
publish = false

[dependencies]
env_logger.workspace = true
Expand Down

0 comments on commit 9bb2d28

Please sign in to comment.