Skip to content

Commit df9c662

Browse files
update selfhost runner logic
1 parent 7e34742 commit df9c662

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/_linux-build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ on:
4545
default: "linux.2xlarge"
4646
description: |
4747
Label of the runner this job should run on.
48+
runner-ppc64le:
49+
required: false
50+
type: string
51+
default: ""
52+
description: |
53+
Label of the ppc64le runner this job should run on.
4854
test-matrix:
4955
required: false
5056
type: string
@@ -101,8 +107,7 @@ jobs:
101107
environment: ${{ github.ref == 'refs/heads/main' && 'scribe-protected' || startsWith(github.ref, 'refs/heads/release/') && 'scribe-protected' || contains(github.event.pull_request.labels.*.name, 'ci-scribe') && 'scribe-pr' || '' }}
102108
# Don't run on forked repos
103109

104-
#runs-on: ["self-hosted", "Linux", "ppc64le"]
105-
runs-on: ${{ inputs.runner_prefix}}${{ inputs.runner }}
110+
runs-on: ${{ inputs.runner_prefix}}${{ inputs.runner }}${{ fromJson(inputs.runner-ppc64le) }}
106111

107112
timeout-minutes: 240
108113
outputs:

.github/workflows/ppc64le.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,4 @@ jobs:
3939
with:
4040
build-environment: linux-ppc64le-binary-manywheel
4141
docker-image-name: pytorch-ppc64le:ubi9.3
42-
runner_prefix: 'self-hosted,'
43-
runner: 'Linux,ppc64le'
42+
runner: '["self-hosted", "Linux", "ppc64le"]'

0 commit comments

Comments
 (0)