fix(ci): accept installed llvm-tools component name
Intrepid/Prometeu/Runtime/pipeline/pr-master This commit looks good
Intrepid/Prometeu/Runtime/pipeline/pr-master This commit looks good
This commit is contained in:
@@ -13,7 +13,12 @@ done
|
||||
|
||||
components=$(rustup component list --installed)
|
||||
for component in rustfmt clippy llvm-tools-preview; do
|
||||
if ! grep -Eq "^${component}(-|$)" <<< "$components"; then
|
||||
# rustup accepts llvm-tools-preview for installation but lists llvm-tools.
|
||||
component_pattern="$component"
|
||||
if [[ "$component" == llvm-tools-preview ]]; then
|
||||
component_pattern='llvm-tools(-preview)?'
|
||||
fi
|
||||
if ! grep -Eq "^${component_pattern}(-|$)" <<< "$components"; then
|
||||
fail "Rust component $component"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user