Try a workaround for macOS CI failures

CARGO_NET_GIT_FETCH_WITH_CLI uses the `git` executable instead of the rust
git2 crate/lib, which speeds things up and is known to resolve some issues
fetching the registry or individual crates.

This is to work around a specific issue with git-resident Cargo.toml
dependencies (e.g. terminfo) that keep randomly failing to download under macOS
CI.
This commit is contained in:
Mahmoud Al-Qudsi 2024-05-07 11:25:02 -05:00
parent 37f0d7c522
commit ebbba10608

View file

@ -152,6 +152,10 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
env:
# macOS runners keep having issues loading Cargo.toml dependencies from git (GitHub) instead
# of crates.io, so give this a try. It's also sometimes significantly faster on all platforms.
CARGO_NET_GIT_FETCH_WITH_CLI: true
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.70 - uses: dtolnay/rust-toolchain@1.70