Use safer method to install llvm-tools-preview

This commit is contained in:
Dominik Nakamura 2021-08-30 17:26:32 +09:00
parent 65510dfc9a
commit c5242d1792
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910

View File

@ -1,3 +1,5 @@
set dotenv-load := true
nightly := "nightly-2021-06-01"
# list available recipes
@ -7,7 +9,7 @@ default:
# run integration tests with coverage
coverage:
cargo install grcov --git https://github.com/mozilla/grcov.git --rev c7a9b20d246a0cda812db509f206b38b3116cba4
rustup component add --toolchain {{nightly}} llvm-tools-preview
rustup toolchain install {{nightly}} --component llvm-tools-preview
rm -rf *.profraw ./target/debug/coverage