Merge pull request #106 from dtolnay/noxargo

Skip xargo installation for miri toolchain
This commit is contained in:
David Tolnay 2024-04-14 10:51:14 -07:00 committed by GitHub
commit 9a6ad42c5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 6 deletions

View File

@ -43,12 +43,8 @@ for tool in clippy miri; do
echo "Updating $tool branch"
git checkout --quiet --detach nightly
git branch --quiet --delete --force $tool &>/dev/null || true
if [ $tool == miri ]; then
default="miri, rust-src"
echo -e " - uses: dtolnay/install@xargo\n with:\n bin: xargo-check" >> action.yml
else
default=$tool
fi
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 commit --quiet --message "components: $tool"