File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626
2727 # zstd is needed for cross OS actions/cache but missing from windows-11-arm
2828 # https://github.com/actions/partner-runner-images/issues/99
29- - uses : ./.github/actions/setup-zstd
29+ - name : Setup zstd for Windows ARM64
30+ uses : ./.github/actions/setup-zstd
3031
3132 # See https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md#xcode
3233 - name : Pin the Xcode Version
Original file line number Diff line number Diff line change @@ -2,16 +2,24 @@ name: Setup zstd for Windows ARM64
22description : |
33 zstd is needed for cross OS actions/cache but missing from windows-11-arm
44 https://github.com/actions/partner-runner-images/issues/99
5+ inputs :
6+ version :
7+ description : ' zstd version'
8+ required : false
9+ default : ' 1.5.7'
510
611runs :
712 using : composite
813 steps :
9- - if : runner.os == 'Windows' && runner.arch == 'ARM64'
14+ - name : Install zstd
15+ if : runner.os == 'Windows' && runner.arch == 'ARM64'
1016 shell : pwsh
17+ env :
18+ ZSTD_VERSION : ${{ inputs.version }}
1119 run : |
12- $version = '1.5.7'
13- $installDir = "$env:RUNNER_TOOL_CACHE\zstd-v$version -win64"
14- Invoke-WebRequest -OutFile "$env:TEMP\zstd.zip" -Uri "https://github.com/facebook/zstd/releases/download/v$version/zstd-v$version-win64.zip"
20+ $url = "https://github.com/facebook/zstd/releases/download/v$env:ZSTD_VERSION/zstd-v$env:ZSTD_VERSION-win64.zip"
21+ $installDir = "$env:RUNNER_TOOL_CACHE\zstd-v$env:ZSTD_VERSION -win64"
22+ Invoke-WebRequest -OutFile "$env:TEMP\zstd.zip" -Uri $url
1523 Expand-Archive -Path "$env:TEMP\zstd.zip" -DestinationPath $env:RUNNER_TOOL_CACHE -Force
1624 echo "$installDir" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
1725 & "$installDir\zstd.exe" --version
Original file line number Diff line number Diff line change 4242
4343 # zstd is needed for cross OS actions/cache but missing from windows-11-arm
4444 # https://github.com/actions/partner-runner-images/issues/99
45- - uses : ./.github/actions/setup-zstd
45+ - name : Setup zstd for Windows ARM64
46+ uses : ./.github/actions/setup-zstd
4647
4748 - uses : actions/cache@v4
4849 id : cache
You can’t perform that action at this time.
0 commit comments