Skip to content

Commit 1723246

Browse files
committed
Specify runner for test-infra's build_wheels_windows
1 parent abbf58b commit 1723246

File tree

2 files changed

+14
-223
lines changed

2 files changed

+14
-223
lines changed

.github/workflows/build-test-windows.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,19 @@ jobs:
2424
with-rocm: false
2525
with-cpu: false
2626

27-
build:
27+
substitute-runner:
2828
needs: generate-matrix
29+
outputs:
30+
matrix: ${{ steps.substitute.outputs.matrix }}
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Substitute runner
34+
id: substitute
35+
run: |
36+
echo matrix="$(echo '${{ needs.generate-matrix.outputs.matrix }}' | sed -e 's/windows.8xlarge.nvidia.gpu/windows.g5.4xlarge.nvidia.gpu/g')" >> ${GITHUB_OUTPUT}
37+
38+
build:
39+
needs: substitute-runner
2940
permissions:
3041
id-token: write
3142
contents: read
@@ -40,13 +51,13 @@ jobs:
4051
smoke-test-script: packaging/smoke_test_windows.py
4152
package-name: torch_tensorrt
4253
name: Build torch-tensorrt whl package
43-
uses: ./.github/workflows/build_wheels_windows.yml
54+
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main
4455
with:
4556
repository: ${{ matrix.repository }}
4657
ref: ""
4758
test-infra-repository: pytorch/test-infra
4859
test-infra-ref: main
49-
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
60+
build-matrix: ${{ needs.substitute-runner.outputs.matrix }}
5061
pre-script: ${{ matrix.pre-script }}
5162
env-script: ${{ matrix.env-script }}
5263
wheel-build-params: ${{ matrix.wheel-build-params }}

.github/workflows/build_wheels_windows.yml

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)