Skip to content

Commit 2c0808d

Browse files
nightly build changes
1 parent 1bfd1fe commit 2c0808d

File tree

3 files changed

+416
-11
lines changed

3 files changed

+416
-11
lines changed

.github/workflows/_binary-build-linux.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
run: env
150150

151151
- name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
152-
if: inputs.build_environment != 'linux-s390x-binary-manywheel'
152+
if: inputs.build_environment != 'linux-s390x-binary-manywheel' && inputs.build_environment != 'linux-ppc64le-binary-manywheel'
153153
uses: pytorch/test-infra/.github/actions/setup-ssh@main
154154
continue-on-error: true
155155
with:
@@ -158,14 +158,14 @@ jobs:
158158
- name: Checkout PyTorch
159159
uses: pytorch/pytorch/.github/actions/checkout-pytorch@main
160160
with:
161-
no-sudo: ${{ inputs.build_environment == 'linux-aarch64-binary-manywheel' || inputs.build_environment == 'linux-s390x-binary-manywheel' }}
161+
no-sudo: ${{ inputs.build_environment == 'linux-aarch64-binary-manywheel' || inputs.build_environment == 'linux-s390x-binary-manywheel' || inputs.build_environment == 'linux-ppc64le-binary-manywheel' }}
162162

163163
- name: Setup Linux
164-
if: inputs.build_environment != 'linux-s390x-binary-manywheel'
164+
if: inputs.build_environment != 'linux-s390x-binary-manywheel' && inputs.build_environment != 'linux-ppc64le-binary-manywheel'
165165
uses: ./.github/actions/setup-linux
166166

167167
- name: Chown workspace
168-
if: inputs.build_environment != 'linux-s390x-binary-manywheel'
168+
if: inputs.build_environment != 'linux-s390x-binary-manywheel' && inputs.build_environment != 'linux-ppc64le-binary-manywheel'
169169
uses: ./.github/actions/chown-workspace
170170
with:
171171
ALPINE_IMAGE: ${{ inputs.ALPINE_IMAGE }}
@@ -178,7 +178,7 @@ jobs:
178178
rm -rf "${GITHUB_WORKSPACE}"
179179
mkdir "${GITHUB_WORKSPACE}"
180180
181-
if [[ ${{ inputs.build_environment }} == 'linux-aarch64-binary-manywheel' ]] || [[ ${{ inputs.build_environment }} == 'linux-s390x-binary-manywheel' ]] ; then
181+
if [[ ${{ inputs.build_environment }} == 'linux-aarch64-binary-manywheel' ]] || [[ ${{ inputs.build_environment }} == 'linux-s390x-binary-manywheel' ]] || [[ ${{ inputs.build_environment }} == 'linux-ppc64le-binary-manywheel' ]] ; then
182182
rm -rf "${RUNNER_TEMP}/artifacts"
183183
mkdir "${RUNNER_TEMP}/artifacts"
184184
fi
@@ -210,7 +210,7 @@ jobs:
210210
]}
211211
212212
- name: Pull Docker image
213-
if: ${{ steps.filter.outputs.is-test-matrix-empty == 'False' && inputs.build_environment != 'linux-s390x-binary-manywheel' }}
213+
if: ${{ steps.filter.outputs.is-test-matrix-empty == 'False' && inputs.build_environment != 'linux-s390x-binary-manywheel' && inputs.build_environment != 'linux-ppc64le-binary-manywheel' }}
214214
uses: pytorch/test-infra/.github/actions/pull-docker-image@main
215215
with:
216216
docker-image: ${{ inputs.DOCKER_IMAGE }}
@@ -251,7 +251,7 @@ jobs:
251251
fi
252252
253253
- name: Chown artifacts
254-
if: ${{ steps.filter.outputs.is-test-matrix-empty == 'False' && inputs.build_environment != 'linux-s390x-binary-manywheel' }}
254+
if: ${{ steps.filter.outputs.is-test-matrix-empty == 'False' && inputs.build_environment != 'linux-s390x-binary-manywheel' && inputs.build_environment != 'linux-ppc64le-binary-manywheel' }}
255255
shell: bash
256256
run: |
257257
# Ensure the working directory gets chowned back to the current user
@@ -266,17 +266,17 @@ jobs:
266266
${{ runner.temp }}/artifacts/*
267267

268268
- name: Teardown Linux
269-
if: always() && inputs.build_environment != 'linux-s390x-binary-manywheel'
269+
if: always() && inputs.build_environment != 'linux-s390x-binary-manywheel' && inputs.build_environment != 'linux-ppc64le-binary-manywheel'
270270
uses: pytorch/test-infra/.github/actions/teardown-linux@main
271271

272272
- name: Chown workspace
273-
if: always() && inputs.build_environment != 'linux-s390x-binary-manywheel'
273+
if: always() && inputs.build_environment != 'linux-s390x-binary-manywheel' && inputs.build_environment != 'linux-ppc64le-binary-manywheel'
274274
uses: ./pytorch/.github/actions/chown-workspace
275275
with:
276276
ALPINE_IMAGE: ${{ inputs.ALPINE_IMAGE }}
277277

278278
- name: Cleanup docker
279-
if: always() && inputs.build_environment == 'linux-s390x-binary-manywheel'
279+
if: always() && ( inputs.build_environment == 'linux-s390x-binary-manywheel' || inputs.build_environment == 'linux-ppc64le-binary-manywheel' )
280280
shell: bash
281281
run: |
282282
# on s390x stop the container for clean worker stop

.github/workflows/_runner-determinator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ on:
4141
jobs:
4242
runner-determinator:
4343
# Don't run on forked repos
44-
if: github.repository_owner == 'pytorch'
44+
4545
runs-on: ubuntu-latest
4646
outputs:
4747
label-type: ${{ steps.set-condition.outputs.label-type }}

0 commit comments

Comments
 (0)