Skip to content

Commit fbcf55b

Browse files
added yml file for ppc docker image
1 parent 00ed105 commit fbcf55b

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build ppc64le manywheel docker images for ppc64le
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- '**'
8+
9+
10+
env:
11+
DOCKER_REGISTRY: "docker.io"
12+
DOCKER_BUILDKIT: 1
13+
WITH_PUSH: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release') || startsWith(github.ref, 'refs/tags/v')) }}
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build-docker-cpu-ppc64le:
21+
22+
environment: ${{ (github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release') || startsWith(github.ref, 'refs/tags/v')) && 'docker-build') || '' }}
23+
runs-on: ubuntu-24.04-ppc64le-4xlarge
24+
steps:
25+
- name: Checkout PyTorch
26+
uses: pytorch/pytorch/.github/actions/checkout-pytorch@main
27+
with:
28+
submodules: false
29+
no-sudo: true
30+
31+
- name: Build Docker Image
32+
run: |
33+
docker build -f .ci/docker/manywheel/Dockerfile_ppc64le -t manylinuxppc64le-builder .
34+
#.ci/docker/manywheel/build.sh manylinuxs390x-builder:cpu-s390x -t manylinuxs390x-builder:cpu-s390x
35+
36+
37+
- name: Cleanup docker
38+
if: cancelled()
39+
shell: bash
40+
run: |
41+
# If podman build command is interrupted,
42+
# it can leave a couple of processes still running.
43+
# Order them to stop for clean shutdown.
44+
# It looks like sometimes some processes remain
45+
# after first cleanup.
46+
# Wait a bit and do cleanup again. It looks like it helps.
47+
docker system prune --build -f || true
48+
sleep 60
49+
docker system prune --build -f || true

0 commit comments

Comments
 (0)