Skip to content

Commit 1346149

Browse files
committed
Remove yq altogether
1 parent 4a22bd9 commit 1346149

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

.github/workflows/build-wheel.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -77,29 +77,6 @@ jobs:
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 }}

0 commit comments

Comments
 (0)