Skip to content

Commit ce3b3c8

Browse files
dockerfile name in yml
1 parent 3a0dbaf commit ce3b3c8

File tree

2 files changed

+3
-28
lines changed

2 files changed

+3
-28
lines changed

.github/workflows/_linux-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ jobs:
212212
- name: Run Docker container and execute build script
213213
if: inputs.build-environment == 'linux-ppc64le-binary-manywheel'
214214
run: |
215-
docker run --rm -v "$(pwd):/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash
215+
docker run -d --name temp_builder pytorch-ppc64le:ubi9.3 /ppc64le-build.sh
216+
docker wait temp_builder
217+
docker cp temp_builder:/workspace/pytorch/dist/. dist/
216218
217219
218220
- name: Build

.github/workflows/ppc64le.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,6 @@ jobs:
2929
run: |
3030
docker build -f .github/workflows/Dockerfile.ppc64le -t pytorch-ppc64le:ubi9.3 .
3131
32-
33-
34-
- name: Run Docker container and execute build script
35-
run: |
36-
docker run -d --name temp_builder pytorch-ppc64le:ubi9.3 /ppc64le-build.sh
37-
docker wait temp_builder
38-
docker cp temp_builder:/workspace/pytorch/dist/. dist/
39-
40-
- name: Archive ppc64le artifacts into zip
41-
42-
run: |
43-
set -e
44-
if [ -d "dist" ]; then
45-
rm -f artifacts.zip # Remove old zip if it exists
46-
zip -9 -r artifacts.zip dist/
47-
else
48-
echo "Warning: dist directory not found, skipping artifact creation."
49-
fi
50-
51-
- name: Store PyTorch Build Artifacts for ppc64le
52-
uses: actions/upload-artifact@v4
53-
54-
with:
55-
name: test
56-
retention-days: 14
57-
if-no-files-found: error
58-
path: artifacts.zip
5932
6033
linux-ubi-9-3-cpu-ppc64le-build:
6134

0 commit comments

Comments
 (0)