Skip to content

Commit cd556d6

Browse files
committed
Fix LLVM caching
1 parent 670659f commit cd556d6

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/actions/install-llvm/action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ runs:
1212
- name: Cache LLVM installer
1313
uses: actions/cache@v5
1414
with:
15-
path: ${{ env.USERPROFILE }}\\llvm-temp
15+
path: ${{ runner.temp }}/llvm-temp
1616
key: llvm-21.1.8-win64
1717

1818
- name: Download and install LLVM
@@ -21,12 +21,10 @@ runs:
2121
$ErrorActionPreference = 'Stop'
2222
2323
$Version = '21.1.8'
24-
$HOME_DIR = if ($env:HOME) { $env:HOME } else { $env:USERPROFILE }
25-
2624
$url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-${Version}/LLVM-${Version}-win64.exe"
2725
28-
$llvmTemp = "$HOME_DIR/llvm-temp"
29-
$install = "$llvmTemp/llvm.exe"
26+
$llvmTemp = Join-Path $env:RUNNER_TEMP 'llvm-temp'
27+
$install = Join-Path $llvmTemp 'llvm.exe'
3028
3129
# download
3230
Write-Host "Downloading LLVM..."

0 commit comments

Comments
 (0)