mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-26 01:59:32 +01:00
Merge pull request #16 from dtolnay/xargo
Install xargo with miri toolchain
This commit is contained in:
commit
6f4de0ad73
1 changed files with 7 additions and 3 deletions
|
@ -34,9 +34,13 @@ 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
|
||||||
default=$tool
|
if [ $tool == miri ]; then
|
||||||
if [ $tool == miri ]; then default+=,\ rust-src; fi
|
default="miri, rust-src"
|
||||||
sed -i "/required: false/{N;s/\n$/\n default: $default\n/}" action.yml
|
echo -e " - uses: dtolnay/install@xargo\n with:\n bin: xargo-check" >> action.yml
|
||||||
|
else
|
||||||
|
default=$tool
|
||||||
|
fi
|
||||||
|
sed -i "/required: false/{N;s/\n$/\n default: $tool\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
|
||||||
|
|
Loading…
Reference in a new issue