File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 7777 if : ${{ startsWith(inputs.host-platform, 'win') }}
7878 uses : ilammy/msvc-dev-cmd@v1 # TODO: ask admin to allow pinning commits
7979
80- - name : Set up yq
81- # GitHub made an unprofessional decision to not provide it in their Windows VMs,
82- # see https://github.com/actions/runner-images/issues/7443.
83- if : ${{ startsWith(inputs.host-platform, 'win') }}
84- env :
85- YQ_VERSION : v4.52.5
86- YQ_SHA256 : 47594981f3848a4b4447494adeca9555f908f7cf0a89c4da3fd0243a4631da1c
87- YQ_DIR : yq
88- shell : pwsh -command ". '{0}'"
89- run : |
90- $yqUrl = "https://github.com/mikefarah/yq/releases/download/${env:YQ_VERSION}/yq_windows_amd64.exe"
91- mkdir -Force -ErrorAction SilentlyContinue "${env:YQ_DIR}" | Out-Null
92- Invoke-WebRequest -UseBasicParsing -OutFile "${env:YQ_DIR}/yq.exe" -Uri "$yqUrl"
93- $hash = (Get-FileHash -Algorithm SHA256 "${env:YQ_DIR}/yq.exe").Hash.ToLower()
94- if ($hash -ne $env:YQ_SHA256) {
95- Write-Error "SHA256 mismatch for yq: expected $env:YQ_SHA256, got $hash"
96- exit 1
97- }
98- ls -l $env:YQ_DIR
99- echo "$((Get-Location).Path)\\$env:YQ_DIR" >> $env:GITHUB_PATH
100- $env:Path += ";$((Get-Location).Path)\\$env:YQ_DIR"
101- yq --version
102-
10380 - name : Set environment variables
10481 env :
10582 CUDA_VER : ${{ inputs.cuda-version }}
You can’t perform that action at this time.
0 commit comments