|
| 1 | +name: Validate binary images |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + main |
| 7 | + paths: |
| 8 | + - .github/workflows/validate-linux-binaries.yml |
| 9 | + pull_request: |
| 10 | + paths: |
| 11 | + - .github/workflows/validate-linux-binaries.yml |
| 12 | +jobs: |
| 13 | + generate-conda-matrix: |
| 14 | + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
| 15 | + with: |
| 16 | + package-type: conda |
| 17 | + os: linux |
| 18 | + channel: nightly |
| 19 | + generate-wheel-matrix: |
| 20 | + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
| 21 | + with: |
| 22 | + package-type: wheel |
| 23 | + os: linux |
| 24 | + channel: nightly |
| 25 | + generate-libtorch-matrix: |
| 26 | + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
| 27 | + with: |
| 28 | + package-type: libtorch |
| 29 | + os: linux |
| 30 | + channel: nightly |
| 31 | + validate-linux-binaries-conda: |
| 32 | + needs: generate-conda-matrix |
| 33 | + strategy: |
| 34 | + matrix: |
| 35 | + ${{ fromJson(needs.generate-conda-matrix.outputs.matrix) }} |
| 36 | + fail-fast: false |
| 37 | + runs-on: ${{ matrix.validation_runner }} |
| 38 | + steps: |
| 39 | + - name: Checkout PyTorch builder |
| 40 | + uses: actions/checkout@v2 |
| 41 | + - name: Validate binary conda |
| 42 | + uses: ./.github/actions/validate-linux-binary |
| 43 | + with: |
| 44 | + gpu_arch_type: ${{ matrix.gpu_arch_type }} |
| 45 | + gpu_arch_ver: ${{ matrix.gpu_arch_version }} |
| 46 | + installation: ${{ matrix.installation }} |
| 47 | + python_version: ${{ matrix.python_version }} |
| 48 | + validate-linux-binaries-wheels: |
| 49 | + needs: generate-wheel-matrix |
| 50 | + strategy: |
| 51 | + matrix: |
| 52 | + ${{ fromJson(needs.generate-wheel-matrix.outputs.matrix) }} |
| 53 | + fail-fast: false |
| 54 | + runs-on: ${{ matrix.validation_runner }} |
| 55 | + steps: |
| 56 | + - name: Checkout PyTorch builder |
| 57 | + uses: actions/checkout@v2 |
| 58 | + - name: Validate binary wheel |
| 59 | + uses: ./.github/actions/validate-linux-binary |
| 60 | + with: |
| 61 | + gpu_arch_type: ${{ matrix.gpu_arch_type }} |
| 62 | + gpu_arch_ver: ${{ matrix.gpu_arch_version }} |
| 63 | + installation: ${{ matrix.installation }} |
| 64 | + python_version: ${{ matrix.python_version }} |
| 65 | + validate-linux-libtorch-binaries: |
| 66 | + needs: generate-libtorch-matrix |
| 67 | + strategy: |
| 68 | + matrix: |
| 69 | + ${{ fromJson(needs.generate-libtorch-matrix.outputs.matrix) }} |
| 70 | + fail-fast: false |
| 71 | + runs-on: "ubuntu-20.04" |
| 72 | + env: |
| 73 | + PYTHON_VERSION: ${{ matrix.python_version }} |
| 74 | + steps: |
| 75 | + - name: Checkout PyTorch builder |
| 76 | + uses: actions/checkout@v2 |
| 77 | + - name: Install pytorch and smoke test |
| 78 | + env: |
| 79 | + INSTALLATION: ${{ matrix.installation }} |
| 80 | + ENV_NAME: conda-env-${{ github.run_id }} |
| 81 | + run: | |
| 82 | + sudo apt-get install unzip -y |
| 83 | + set -ex |
| 84 | + curl ${INSTALLATION} -o libtorch.zip |
| 85 | + unzip libtorch.zip |
0 commit comments