Skip to content

Commit fc0f566

Browse files
authored
build_wheels_linux: add runner override (#7293)
This adds a runner override so you can set it to larger memory etc. Test plan: will test with external repo
1 parent 6ec5047 commit fc0f566

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build_wheels_linux.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ on:
6464
required: false
6565
type: string
6666
default: x86_64
67+
runner:
68+
description: "Override runner for builds"
69+
default: ""
70+
type: string
6771
submodules:
6872
description: Works as stated in actions/checkout, but the default value is recursive
6973
required: false
@@ -133,7 +137,7 @@ jobs:
133137
ARCH: ${{ inputs.architecture }}
134138
BUILD_TARGET: ${{ inputs.build-target }}
135139
name: build-${{ matrix.build_name }}
136-
runs-on: ${{ matrix.validation_runner }}
140+
runs-on: ${{ (inputs.runner != '' && inputs.runner) || matrix.validation_runner }}
137141
environment: ${{(inputs.trigger-event == 'schedule' || (inputs.trigger-event == 'push' && (startsWith(github.event.ref, 'refs/heads/nightly') || startsWith(github.event.ref, 'refs/tags/v')))) && 'pytorchbot-env' || ''}}
138142
container:
139143
image: ${{ matrix.container_image }}

0 commit comments

Comments
 (0)