7575 if : ${{ startsWith(inputs.host-platform, 'win') }}
7676 uses : ilammy/msvc-dev-cmd@v1 # TODO: ask admin to allow pinning commits
7777
78+ - name : Set up yq
79+ # GitHub made an unprofessional decision to not provide it in their Windows VMs,
80+ # see https://github.com/actions/runner-images/issues/7443.
81+ if : ${{ startsWith(inputs.host-platform, 'win') }}
82+ env :
83+ # doesn't seem there's an easy way to avoid hard-coding it?
84+ YQ_URL : https://github.com/mikefarah/yq/releases/latest/download/yq_windows_amd64.exe
85+ YQ_DIR : yq_latest
86+ shell : pwsh -command ". '{0}'"
87+ run : |
88+ mkdir -Force -ErrorAction SilentlyContinue "${env:YQ_DIR}" | Out-Null
89+ Invoke-WebRequest -UseBasicParsing -OutFile "${env:YQ_DIR}/yq.exe" -Uri "$env:YQ_URL"
90+ ls -l $env:YQ_DIR
91+ echo "$((Get-Location).Path)\\$env:YQ_DIR" >> $env:GITHUB_PATH
92+ $env:Path += ";$((Get-Location).Path)\\$env:YQ_DIR"
93+ yq --version
94+
7895 - name : Set environment variables
7996 env :
8097 CUDA_VER : ${{ inputs.cuda-version }}
@@ -275,8 +292,7 @@ jobs:
275292 id : setup-python2
276293 uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
277294 with :
278- # workaround for actions/runner-images#12377 (the cached 3.13.4 is buggy on Windows)
279- python-version : ${{ matrix.python-version == '3.13' && '3.13.5' || matrix.python-version }}
295+ python-version : ${{ matrix.python-version }}
280296
281297 - name : verify free-threaded build
282298 if : endsWith(matrix.python-version, 't')
@@ -334,7 +350,6 @@ jobs:
334350 cuda-path : " ./cuda_toolkit_prev"
335351
336352 - name : Download cuda.bindings build artifacts from the prior branch
337- if : startsWith(matrix.python-version, '3.14')
338353 env :
339354 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
340355 run : |
@@ -350,7 +365,7 @@ jobs:
350365 && apt install gh -y
351366 fi
352367
353- OLD_BRANCH=$(cat .github/BACKPORT_BRANCH )
368+ OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml )
354369 OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
355370 LATEST_PRIOR_RUN_ID=$(gh run list -b ${OLD_BRANCH} -L 1 -w "ci.yml" -s completed -R NVIDIA/cuda-python --json databaseId | jq '.[]| .databaseId')
356371 if [[ "$LATEST_PRIOR_RUN_ID" == "" ]]; then
0 commit comments