@@ -72,16 +72,19 @@ jobs:
7272 fail-fast : false
7373 matrix : ${{ fromJSON(needs.compute-matrix.outputs.MATRIX) }}
7474 if : ${{ github.repository_owner == 'nvidia' && !cancelled() }}
75- runs-on : " windows-${{ matrix.ARCH }}-gpu-${{ matrix.GPU }}-${{ matrix.DRIVER }}-1"
75+ # TODO: switch to self-hosted runners once they are ready
76+ # runs-on: "windows-${{ matrix.ARCH }}-gpu-${{ matrix.GPU }}-${{ matrix.DRIVER }}-1"
77+ runs-on : ' cuda-python-windows-gpu-github'
7678 steps :
7779 - name : Checkout ${{ github.event.repository.name }}
7880 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7981 with :
8082 fetch-depth : 0
8183
82- - name : Setup proxy cache
83- uses : nv-gha-runners/setup-proxy-cache@main
84- continue-on-error : true
84+ # TODO: use setup-proxy-cache once we have self-hosted Windows runners
85+ # - name: Setup proxy cache
86+ # uses: nv-gha-runners/setup-proxy-cache@main
87+ # continue-on-error: true
8588
8689 - name : Update driver
8790 run : |
9093 - name : Ensure GPU is working
9194 run : nvidia-smi
9295
96+ # TODO: remove this block once self-hosted runners are ready
97+ - name : Install Git for Windows
98+ # the GPU runner image does not have Git Bash pre-installed...
99+ env :
100+ # doesn't seem there's an easy way to avoid hard-coding it?
101+ GFW_EXE_URL : https://github.com/git-for-windows/git/releases/download/v2.49.0.windows.1/PortableGit-2.49.0-64-bit.7z.exe
102+ run : |
103+ Invoke-WebRequest -Uri "$env:GFW_EXE_URL" -OutFile "PortableGit.7z.exe"
104+ # Self-extracting, see https://gitforwindows.org/zip-archives-extracting-the-released-archives.html
105+ Start-Process .\PortableGit.7z.exe -Wait -Verbose -ArgumentList '-y -gm2'
106+ ls -l PortableGit
107+ echo "$((Get-Location).Path)\\PortableGit\\bin" >> $env:GITHUB_PATH
108+ $env:Path += ";$((Get-Location).Path)\\PortableGit\\bin"
109+ bash --version
110+
93111 - name : Set environment variables
94112 env :
95113 BUILD_CUDA_VER : ${{ inputs.build-ctk-ver }}
@@ -121,6 +139,22 @@ jobs:
121139 name : ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}
122140 path : ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
123141
142+ # TODO: remove this block once self-hosted runners are ready
143+ - name : Install gh cli
144+ # the GPU runner image does not have gh pre-installed...
145+ env :
146+ # doesn't seem there's an easy way to avoid hard-coding it?
147+ GH_MSI_URL : https://github.com/cli/cli/releases/download/v2.67.0/gh_2.67.0_windows_amd64.msi
148+ run : |
149+ Invoke-WebRequest -Uri "$env:GH_MSI_URL" -OutFile "gh_installer.msi"
150+ Start-Process msiexec.exe -Wait -Verbose -ArgumentList '/i "gh_installer.msi" /qn'
151+ $GH_POSSIBLE_PATHS = "C:\\Program Files\\GitHub CLI", "C:\\Program Files (x86)\\GitHub CLI"
152+ foreach ($p in $GH_POSSIBLE_PATHS) {
153+ echo "$p" >> $env:GITHUB_PATH
154+ $env:Path += ";$p"
155+ }
156+ gh --version
157+
124158 - name : Install zstd
125159 # the GPU runner image does not have zstd pre-installed... and it's needed by actions/cache
126160 if : ${{ matrix.LOCAL_CTK == '1' }}
0 commit comments