Skip to content

Commit 9c7e66d

Browse files
authored
Fix cargo-vet CI step by use stable rust toolchain (#237)
It's not necessary to use the toolchain specified for puffin. And `cargo-vet` failed to build with 1.76 toolchain. ### Checklist * [X] I have read the [Contributor Guide](../CONTRIBUTING.md) * [X] I have read and agree to the [Code of Conduct](../CODE_OF_CONDUCT.md) * [X] I have added a description of my changes and why I'd like them included in the section below ### Description of Changes Setup `cargo-vet` CI step to build cargo-vet with `stable` Rust toolchain. ### Related Issues Currently `cargo-vet` v0.9.1 failed to build with Rust toolchain v1.73.0 ``` error: failed to compile `cargo-vet v0.9.1`, intermediate artifacts can be found at `/tmp/cargo-installc9q6ok`. To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. Caused by: package `cargo-platform v0.1.9` cannot be built because it requires rustc 1.78 or newer, while the currently active rustc version is 1.76.0 ```
1 parent 58279cf commit 9c7e66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- name: Ensure that the tool cache is populated with the cargo-vet binary
9393
# build from source, as are not published binaries yet :(
9494
# tracked in https://github.com/mozilla/cargo-vet/issues/484
95-
run: cargo install --root ${{ runner.tool_cache }}/cargo-vet --version ${{ env.CARGO_VET_VERSION }} cargo-vet
95+
run: cargo +stable install --root ${{ runner.tool_cache }}/cargo-vet --version ${{ env.CARGO_VET_VERSION }} cargo-vet
9696
- name: Invoke cargo-vet
9797
run: |
9898
cargo vet --locked

0 commit comments

Comments
 (0)