Skip to content

Commit e4fbebf

Browse files
using build version
1 parent 9156fc6 commit e4fbebf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/_linux-build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,13 @@ jobs:
321321
- name: Archive ppc64le artifacts into zip
322322
if: inputs.build-environment == 'linux-ppc64le-binary-manywheel'
323323
run: |
324-
cd dist
325-
zip -1 ../artifacts.zip *.whl
324+
set -e
325+
if [ -d "dist" ]; then
326+
rm -f artifacts.zip # Remove old zip if it exists
327+
zip -9 -r artifacts.zip dist/
328+
else
329+
echo "Warning: dist directory not found, skipping artifact creation."
330+
fi
326331
327332
- name: Store PyTorch Build Artifacts for ppc64le
328333
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)