Skip to content

Commit 3523f07

Browse files
update selfhost runner logic1
1 parent a6a9065 commit 3523f07

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/_linux-build.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ jobs:
282282
283283
- name: Store PyTorch Build Artifacts on S3
284284
uses: seemethere/upload-artifact-s3@v5
285-
if: inputs.build-generates-artifacts && steps.build.outcome != 'skipped' && !inputs.use_split_build && inputs.build-environment != 'linux-s390x-binary-manywheel'
285+
if: inputs.build-generates-artifacts && steps.build.outcome != 'skipped' && !inputs.use_split_build && inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
286286
with:
287287
name: ${{ inputs.build-environment }}
288288
retention-days: 14
@@ -302,7 +302,7 @@ jobs:
302302

303303
- name: Store PyTorch Build Artifacts for s390x
304304
uses: actions/upload-artifact@v3
305-
if: inputs.build-generates-artifacts && steps.build.outcome != 'skipped' && !inputs.use_split_build && inputs.build-environment == 'linux-s390x-binary-manywheel'
305+
if: inputs.build-generates-artifacts && steps.build.outcome != 'skipped' && !inputs.use_split_build && inputs.build-environment == 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
306306
with:
307307
name: ${{ inputs.build-environment }}
308308
retention-days: 14
@@ -311,15 +311,28 @@ jobs:
311311

312312
- name: Store PyTorch Build Artifacts for s390x for split build
313313
uses: actions/upload-artifact@v3
314-
if: inputs.build-generates-artifacts && steps.build.outcome != 'skipped' && inputs.use_split_build && inputs.build-environment == 'linux-s390x-binary-manywheel'
314+
if: inputs.build-generates-artifacts && steps.build.outcome != 'skipped' && inputs.use_split_build && inputs.build-environment == 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
315315
with:
316316
name: ${{ inputs.build-environment }}-experimental-split-build
317317
retention-days: 14
318318
if-no-files-found: error
319319
path: artifacts.zip
320320

321+
- name: Archive ppc64le artifacts into zip
322+
run: |
323+
cd dist
324+
zip -1 ../artifacts.zip *.whl
325+
326+
- name: Store PyTorch Build Artifacts for ppc64le
327+
uses: actions/upload-artifact@v3
328+
with:
329+
name: ${{ inputs.build-environment }}
330+
retention-days: 14
331+
if-no-files-found: error
332+
path: artifacts.zip
333+
321334
- name: Upload sccache stats
322-
if: steps.build.outcome != 'skipped' && inputs.build-environment != 'linux-s390x-binary-manywheel'
335+
if: steps.build.outcome != 'skipped' && inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
323336
uses: seemethere/upload-artifact-s3@v5
324337
with:
325338
s3-prefix: |
@@ -331,10 +344,10 @@ jobs:
331344

332345
- name: Teardown Linux
333346
uses: pytorch/test-infra/.github/actions/teardown-linux@main
334-
if: always() && inputs.build-environment != 'linux-s390x-binary-manywheel'
347+
if: always() && inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
335348

336349
- name: Cleanup docker
337-
if: always() && inputs.build-environment == 'linux-s390x-binary-manywheel'
350+
if: always() && inputs.build-environment == 'linux-s390x-binary-manywheel' && inputs.build-environment == 'linux-ppc64le-binary-manywheel'
338351
shell: bash
339352
run: |
340353
# on s390x stop the container for clean worker stop

0 commit comments

Comments
 (0)