Fix cargo-udeps

This commit is contained in:
Michael Sproul
2022-11-09 11:53:59 +11:00
parent 6c42aef1b5
commit 93457d85b7
2 changed files with 7 additions and 4 deletions

View File

@@ -12,7 +12,9 @@ env:
# Deny warnings in CI
RUSTFLAGS: "-D warnings"
# The Nightly version used for cargo-udeps, might need updating from time to time.
PINNED_NIGHTLY: nightly-2022-05-20
PINNED_NIGHTLY: nightly-2022-11-08
# The version of cargo-udeps to use, might need updating from time to time.
CARGO_UDEPS_VERSION: 0.1.35
jobs:
target-branch-check:
name: target-branch-check
@@ -359,12 +361,10 @@ jobs:
- uses: actions/checkout@v1
- name: Install Rust (${{ env.PINNED_NIGHTLY }})
run: rustup toolchain install $PINNED_NIGHTLY
# NOTE: cargo-udeps version is pinned until this issue is resolved:
# https://github.com/est31/cargo-udeps/issues/135
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install cargo-udeps
run: cargo install cargo-udeps --locked --force --version 0.1.30
run: cargo install cargo-udeps --locked --force --version $CARGO_UDEPS_VERSION
- name: Create Cargo config dir
run: mkdir -p .cargo
- name: Install custom Cargo config

View File

@@ -42,3 +42,6 @@ snap = "1.0.1"
beacon_chain = { path = "../beacon_node/beacon_chain" }
store = { path = "../beacon_node/store" }
malloc_utils = { path = "../common/malloc_utils" }
[package.metadata.cargo-udeps.ignore]
normal = ["malloc_utils"]