Skip to content

Commit 69bdb80

Browse files
manylinux image build
1 parent a3ef8bb commit 69bdb80

File tree

1 file changed

+3
-36
lines changed

1 file changed

+3
-36
lines changed

.github/workflows/_linux-build.yml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,8 @@ jobs:
187187
job_identifier: ${{ github.workflow }}_${{ inputs.build-environment }}
188188
s3_bucket: ${{ inputs.s3-bucket }}
189189

190-
191-
192190
- name: Build
193-
if: steps.filter.outputs.is-test-matrix-empty == 'False' || inputs.test-matrix == '' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
191+
if: steps.filter.outputs.is-test-matrix-empty == 'False' || inputs.test-matrix == ''
194192
id: build
195193
env:
196194
BUILD_ENVIRONMENT: ${{ inputs.build-environment }}
@@ -237,39 +235,8 @@ jobs:
237235
# detached container should get cleaned up by teardown_ec2_linux
238236
# Used for JENKINS_USER and DOCKER_SHELL_CMD, which can be empty
239237
# shellcheck disable=SC2086
240-
docker run \
241-
--rm \
242-
-e BUILD_ENVIRONMENT \
243-
-e MAX_JOBS="$(nproc --ignore=2)" \
244-
-e AWS_DEFAULT_REGION \
245-
-e PR_NUMBER \
246-
-e SHA1 \
247-
-e BRANCH \
248-
-e SCCACHE_BUCKET \
249-
-e SCCACHE_REGION \
250-
-e XLA_CUDA \
251-
-e XLA_CLANG_CACHE_S3_BUCKET_NAME \
252-
-e SKIP_SCCACHE_INITIALIZATION=1 \
253-
-e TORCH_CUDA_ARCH_LIST \
254-
-e PR_LABELS \
255-
-e OUR_GITHUB_JOB_ID \
256-
-e HUGGING_FACE_HUB_TOKEN \
257-
-e SCRIBE_GRAPHQL_ACCESS_TOKEN \
258-
-e USE_SPLIT_BUILD \
259-
--memory="${TOTAL_AVAILABLE_MEMORY_IN_GB%.*}g" \
260-
--memory-swap="${TOTAL_MEMORY_WITH_SWAP}g" \
261-
--env-file="/tmp/github_env_${GITHUB_RUN_ID}" \
262-
--security-opt seccomp=unconfined \
263-
--cap-add=SYS_PTRACE \
264-
--tty \
265-
${JENKINS_USER} \
266-
-v "${GITHUB_WORKSPACE}:/var/lib/jenkins/workspace" \
267-
-w /var/lib/jenkins/workspace \
268-
"${USED_IMAGE}" \
269-
sh -c "${DOCKER_SHELL_CMD} && .ci/pytorch/build.sh"
270-
271-
272-
238+
docker run --rm -v ${GITHUB_WORKSPACE}:/workspace/pytorch pytorch/ubippc64le-builder:cpu-ppc64le-main /workspace/pytorch/.github/scripts/ppc64le-build.sh
239+
273240
END_TIME=$(date +%s)
274241
echo "build_time=$((END_TIME - START_TIME))" >> "$GITHUB_OUTPUT"
275242

0 commit comments

Comments
 (0)