Skip to content

Commit ebeba63

Browse files
committed
Fix LLVM install
1 parent ad5c5db commit ebeba63

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/otel_sdk.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ jobs:
2222
# - uses: Cyberboss/install-winget@6f566e9e227561d5d31e45d65f9b777b3fa8f56f
2323
- run: winget list --accept-source-agreements --disable-interactivity
2424
- run: winget install bazelisk -r bazel --accept-package-agreements --disable-interactivity --silent
25-
- run: winget install -e LLVM.LLVM -v 20.1.7 --accept-package-agreements --disable-interactivity --silent || echo swalloing errors
25+
- name: Install LLVM with winget (ignore if already installed)
26+
shell: pwsh
27+
run: |
28+
winget install -e LLVM.LLVM -v 20.1.7 --accept-package-agreements --disable-interactivity --silent
29+
if ($LASTEXITCODE -ne 0) {
30+
Write-Host "Winget install failed or not needed (already installed)"
31+
exit 0
32+
}
2633
- uses: actions/checkout@v4
2734
- uses: actions/cache/restore@v4
2835
with:

0 commit comments

Comments
 (0)