Skip to content

Commit 7ab2fa0

Browse files
using manylinux
1 parent ed34c5e commit 7ab2fa0

File tree

2 files changed

+21
-27
lines changed

2 files changed

+21
-27
lines changed

.github/workflows/_linux-build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
steps:
110110
- name: Setup SSH (Click me for login details)
111111
uses: pytorch/test-infra/.github/actions/setup-ssh@main
112-
if: inputs.build-environment != 'linux-s390x-binary-manywheel'
112+
if: inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
113113
with:
114114
github-secret: ${{ secrets.GITHUB_TOKEN }}
115115

@@ -120,15 +120,15 @@ jobs:
120120
- name: Checkout PyTorch
121121
uses: pytorch/pytorch/.github/actions/checkout-pytorch@main
122122
with:
123-
no-sudo: ${{ inputs.build-environment == 'linux-s390x-binary-manywheel' }}
123+
no-sudo: ${{ inputs.build-environment == 'linux-s390x-binary-manywheel' || inputs.build-environment == 'linux-ppc64le-binary-manywheel' }}
124124

125125
- name: Setup Linux
126126
uses: ./.github/actions/setup-linux
127-
if: inputs.build-environment != 'linux-s390x-binary-manywheel'
127+
if: inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
128128

129129
- name: configure aws credentials
130130
uses: aws-actions/configure-aws-credentials@v3
131-
if: ${{ inputs.aws-role-to-assume != '' && inputs.build-environment != 'linux-s390x-binary-manywheel' }}
131+
if: ${{ inputs.aws-role-to-assume != '' && inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel' }}
132132
with:
133133
role-to-assume: ${{ inputs.aws-role-to-assume }}
134134
role-session-name: gha-linux-build
@@ -137,13 +137,13 @@ jobs:
137137
- name: Calculate docker image
138138
id: calculate-docker-image
139139
uses: pytorch/test-infra/.github/actions/calculate-docker-image@main
140-
if: inputs.build-environment != 'linux-s390x-binary-manywheel'
140+
if: inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
141141
with:
142142
docker-image-name: ${{ inputs.docker-image-name }}
143143

144144
- name: Use following to pull public copy of the image
145145
id: print-ghcr-mirror
146-
if: inputs.build-environment != 'linux-s390x-binary-manywheel'
146+
if: inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
147147
env:
148148
ECR_DOCKER_IMAGE: ${{ steps.calculate-docker-image.outputs.docker-image }}
149149
shell: bash
@@ -153,7 +153,7 @@ jobs:
153153
154154
- name: Pull docker image
155155
uses: pytorch/test-infra/.github/actions/pull-docker-image@main
156-
if: inputs.build-environment != 'linux-s390x-binary-manywheel'
156+
if: inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
157157
with:
158158
docker-image: ${{ steps.calculate-docker-image.outputs.docker-image }}
159159

@@ -212,7 +212,7 @@ jobs:
212212
SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.SCRIBE_GRAPHQL_ACCESS_TOKEN }}
213213
USE_SPLIT_BUILD: ${{ inputs.use_split_build }}
214214
run: |
215-
if [[ ${BUILD_ENVIRONMENT} == *"s390x"* ]]; then
215+
if [[ ${BUILD_ENVIRONMENT} == *"s390x"* || ${BUILD_ENVIRONMENT} == *"ppc64le"* ]]; then
216216
JENKINS_USER=
217217
USED_IMAGE="${DOCKER_IMAGE_S390X}"
218218
@@ -278,7 +278,7 @@ jobs:
278278

279279
- name: Store PyTorch Build Artifacts on S3 for split build
280280
uses: seemethere/upload-artifact-s3@v5
281-
if: inputs.build-generates-artifacts && steps.build.outcome != 'skipped' && inputs.use_split_build && inputs.build-environment != 'linux-s390x-binary-manywheel'
281+
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'
282282
with:
283283
name: ${{ inputs.build-environment }}-experimental-split-build
284284
retention-days: 14

.github/workflows/ppc64le.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,17 @@ on:
88
- ciflow/ppc64le/*
99
workflow_dispatch:
1010

11-
jobs:
12-
linux-ppc64le-build:
13-
name: Build and Test on ppc64le
14-
runs-on: [self-hosted, linux, ppc64le] # Ensure you have a self-hosted runner for ppc64le
15-
16-
steps:
17-
- name: Checkout repository
18-
uses: actions/checkout@v3
19-
20-
- name: Set up Docker Buildx
21-
uses: docker/setup-buildx-action@v2
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}
13+
cancel-in-progress: true
2214

23-
- name: Build Docker image for ppc64le
24-
run: |
25-
docker build -f .github/workflows/Dockerfile.ppc64le -t pytorch-ppc64le:ubi9.3 .
26-
27-
- name: Run Docker container and execute build script
28-
run: |
29-
docker run --rm pytorch-ppc64le:ubi9.3 /ppc64le-build.sh
15+
jobs:
16+
linux-manylinux-2_28-py3-cpu-ppc64le-build:
17+
if: github.repository_owner == 'pytorch'
18+
name: linux-manylinux-2_28-py3-cpu-ppc64le
19+
uses: ./.github/workflows/_linux-build.yml
20+
with:
21+
build-environment: linux-ppc64le-binary-manywheel
22+
docker-image-name: pytorch/manylinuxppc64le-builder:cpu-ppc64le-main
23+
runner: linux.ppc64le
3024

0 commit comments

Comments
 (0)