Skip to content

Commit

Permalink
ci: run cargo-udeps nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed May 27, 2022
1 parent 609b567 commit 0e8169f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,34 @@ jobs:
with:
command: build
args: --all-targets --all-features --release --profile=release

cargo-udeps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
# Enable caching of the 'librocksdb-sys' crate by additionally caching the
# 'librocksdb-sys' src directory which is managed by cargo
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
with:
path: ~/.cargo/registry/src/**/librocksdb-sys-*
- name: Install cargo-udeps, and cache the binary
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-udeps
locked: true
- name: Install cargo-hakari, and cache the binary
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-hakari
locked: true
# Normally running cargo-udeps requires use of a nightly compiler
# In order to have a more stable and less noisy experience, lets instead
# opt to use the stable toolchain specified via the 'rust-toolchain' file
# and instead enable nightly features via 'RUSTC_BOOTSTRAP'
- name: run cargo-udeps
run: |
# First we need to disable the workspace-hack package
cargo hakari disable
cargo hakari remove-deps -y
RUSTC_BOOTSTRAP=1 cargo udeps

0 comments on commit 0e8169f

Please sign in to comment.