ppc64le #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ppc64le-build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - ciflow/ppc64le/* | |
| workflow_dispatch: | |
| jobs: | |
| linux-ppc64le-build: | |
| name: Build and Test on ppc64le | |
| runs-on: [self-hosted, linux, ppc64le] # Ensure you have a self-hosted runner for ppc64le | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Build Docker image for ppc64le | |
| run: | | |
| docker build --no-cache -f .github/workflows/Dockerfile.ppc64le -t pytorch-ppc64le:ubi9.3 . | |
| export PATH=$PATH:/usr/bin | |
| zip --version | |
| - name: Run Docker container and execute build script | |
| run: | | |
| docker run --rm pytorch-ppc64le:ubi9.3 /ppc64le-build.sh | |
| - name: Archive artifacts into zip | |
| run: | | |
| export PATH=$PATH:/usr/bin | |
| zip -1 -r artifacts.zip dist/ build/custom_test_artifacts build/lib build/bin .additional_ci_files | |
| - name: Store PyTorch Build Artifacts for s390x | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: ppc64le-artifact | |
| retention-days: 14 | |
| if-no-files-found: error | |
| path: artifacts.zip | |