Skip to content

Commit e0f686b

Browse files
update selfhost runner logic1
1 parent 19f0e4a commit e0f686b

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/_linux-build.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ jobs:
106106
build:
107107
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' || '' }}
108108
# Don't run on forked repos
109-
runs-on: ${{ matrix.labels }}
109+
110+
runs-on: ${{ matrix.runner.labels }}
110111

111112
timeout-minutes: 240
112113
outputs:
@@ -115,17 +116,10 @@ jobs:
115116

116117
strategy:
117118
matrix:
118-
labels:
119-
- ["self-hosted", "linux", "ppc64le"]
120-
- ["${{ inputs.runner_prefix }}", "${{ inputs.runner }}"]
121-
include:
122-
- labels: ["self-hosted", "linux", "ppc64le"]
123-
type: ppc64le
124-
- labels: ["${{ inputs.runner_prefix }}", "${{ inputs.runner }}"]
125-
type: default
126-
exclude:
127-
- type: ppc64le
128-
if: ${{ inputs.runner != 'ppc64le' }}
119+
runner:
120+
- { type: ppc64le, labels: 'self-hosted, linux, ppc64le' }
121+
- { type: default, labels: '${{ inputs.runner_prefix }} ${{ inputs.runner }}' }
122+
129123
steps:
130124

131125
- name: Setup SSH (Click me for login details)

0 commit comments

Comments
 (0)