Skip to content

ppc64le

ppc64le #35

Workflow file for this run

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