Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cargo deny check to Nightly build #187

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: dtolnay/rust-toolchain@master
- uses: EmbarkStudios/cargo-deny-action@v2
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
- uses: taiki-e/install-action@cargo-deny
- name: Run cargo deny check
run: |
cargo deny check
rust-version: ${{ env.RUST_TOOLCHAIN }}
command: check
arguments: --all-features

# [impl->req~up-language-ci-build~1]
check:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,25 @@ concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

env:
RUST_TOOLCHAIN: ${{ vars.RUST_TOOLCHAIN || 'stable' }}

jobs:
check-msrv:
uses: ./.github/workflows/verify-msrv.yaml

deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: EmbarkStudios/cargo-deny-action@v2
with:
rust-version: ${{ env.RUST_TOOLCHAIN }}
command: check
arguments: --all-features

test-all-features:
uses: ./.github/workflows/test-featurematrix.yaml

Expand Down
4 changes: 3 additions & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
allow = ["Apache-2.0", "BSD-3-Clause", "MIT"]
private = { ignore = true }
exceptions = [{ name = "unicode-ident", allow = ["Unicode-DFS-2016"] }]
unused-allowed-license = "allow"

[bans]
multiple-versions = "allow"
multiple-versions = "deny"
wildcards = "deny"