-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Replace deprecated actions - Add udeps, pants, audit, deny GitHub Action checks - Fix MainClock::RcOscillator4Mhz typo for atsam4n targets - Fix clippy warning
- Loading branch information
Showing
5 changed files
with
394 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: "Audit Dependencies" | ||
on: | ||
push: | ||
paths: | ||
# Run if workflow changes | ||
- '.github/workflows/audit.yml' | ||
# Run on changed dependencies | ||
- '**/Cargo.toml' | ||
- '**/Cargo.lock' | ||
# Run if the configuration file changes | ||
- '**/audit.toml' | ||
# Rerun periodicly to pick up new advisories | ||
schedule: | ||
- cron: '0 0 * * *' | ||
# Run manually | ||
workflow_dispatch: | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
audit: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: actions-rust-lang/audit@v1 | ||
name: Audit Rust Dependencies | ||
|
||
deny: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: cargo-binstall | ||
run: | | ||
mkdir -p ~/.cargo/bin | ||
wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz | ||
tar xf cargo-binstall*.tgz -C ~/.cargo/bin | ||
- run: cargo binstall --no-confirm cargo-deny | ||
- name: Cargo Deny | ||
run: cargo deny check licenses | ||
|
||
pants: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: cargo-binstall | ||
run: | | ||
mkdir -p ~/.cargo/bin | ||
wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz | ||
tar xf cargo-binstall*.tgz -C ~/.cargo/bin | ||
- run: cargo binstall --no-confirm cargo-pants | ||
- name: Cargo Pants | ||
run: cargo pants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.