Install rust-src component by default for miri toolchain

This commit is contained in:
David Tolnay 2022-06-29 09:38:39 -07:00
parent 4cbcd90bcf
commit 2c39999f2b
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -34,7 +34,9 @@ for tool in clippy miri; do
echo "Updating $tool branch" echo "Updating $tool branch"
git checkout --quiet --detach nightly git checkout --quiet --detach nightly
git branch --quiet --delete --force $tool &>/dev/null || true git branch --quiet --delete --force $tool &>/dev/null || true
sed -i "/required: false/{N;s/\n$/\n default: $tool\n/}" action.yml default=$tool
if [ $tool == miri ]; then default+=,\ rust-src; fi
sed -i "/required: false/{N;s/\n$/\n default: $default\n/}" action.yml
git add action.yml git add action.yml
git commit --quiet --message "components: $tool" git commit --quiet --message "components: $tool"
git checkout --quiet -b $tool git checkout --quiet -b $tool