mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Prefer viable nightly Rust builds for CI (#1379)
## Proposed Changes CI is failing on PRs because of a regression in nightly Rust. This change forces `rustup` to install a version of the nightly compiler that can at least build `rustfmt`, which should reduce the frequency of this happening. ## Additional Info Example failing run: https://github.com/sigp/lighthouse/runs/896694659 Alternatively, we could allow CI to succeed even when `cargo-udeps` fails, but I think we should avoid doing that unless we really have to.
This commit is contained in:
4
.github/workflows/test-suite.yml
vendored
4
.github/workflows/test-suite.yml
vendored
@@ -145,8 +145,8 @@ jobs:
|
|||||||
needs: cargo-fmt
|
needs: cargo-fmt
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Get latest version of nightly Rust
|
- name: Install a nightly compiler with rustfmt, as a kind of quality control
|
||||||
run: rustup update nightly
|
run: rustup toolchain install --component=rustfmt nightly
|
||||||
- name: Install cargo-udeps
|
- name: Install cargo-udeps
|
||||||
run: cargo install cargo-udeps --locked
|
run: cargo install cargo-udeps --locked
|
||||||
- name: Run cargo udeps to identify unused crates in the dependency graph
|
- name: Run cargo udeps to identify unused crates in the dependency graph
|
||||||
|
|||||||
Reference in New Issue
Block a user