fix(ci): accept installed llvm-tools component name
Intrepid/Prometeu/Runtime/pipeline/pr-master This commit looks good

This commit is contained in:
2026-10-14 14:43:09 +01:00
parent a2275932a5
commit 4669ced98e
+6 -1
View File
@@ -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