Skip to content

Commit ded75bc

Browse files
committed
Add arm64 builds
1 parent 44980b5 commit ded75bc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/validate-macos-binaries.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
description: "Channel to use (nightly, test, release, all)"
88
required: true
99
type: string
10+
ref:
11+
description: 'Reference to checkout, defaults to empty'
12+
default: ""
13+
required: false
14+
type: string
1015
workflow_dispatch:
1116
inputs:
1217
channel:
@@ -18,6 +23,11 @@ on:
1823
- nightly
1924
- test
2025
- all
26+
ref:
27+
description: 'Reference to checkout, defaults to empty'
28+
default: ""
29+
required: false
30+
type: string
2131

2232
jobs:
2333
generate-macos-matrix:
@@ -67,3 +77,29 @@ jobs:
6777
eval $INSTALLATION
6878
python ./test/smoke_test/smoke_test.py
6979
fi
80+
81+
linux:
82+
needs: generate-macos-arm64-matrix
83+
strategy:
84+
matrix: ${{ fromJson(needs.generate-macos-arm64-matrix.outputs.matrix) }}
85+
fail-fast: false
86+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
87+
name: ${{ matrix.build_name }}
88+
with:
89+
runner: ${{ matrix.validation_runner }}
90+
repository: "pytorch/builder"
91+
ref: ${{ inputs.ref || github.ref }}
92+
job-name: ${{ matrix.build_name }}
93+
script: |
94+
set -ex
95+
export ENV_NAME="conda-env-${{ github.run_id }}"
96+
export GPU_ARCH_VER="${{ matrix.gpu_arch_version }}"
97+
export GPU_ARCH_TYPE="${{ matrix.gpu_arch_type }}"
98+
export INSTALLATION="${{ matrix.installation }}"
99+
export CUDA_VER="${{ matrix.desired_cuda }}"
100+
export DESIRED_PYTHON="${{ matrix.python_version }}"
101+
export DESIRED_CUDA="${{ matrix.desired_cuda }}"
102+
conda create -y -n ${ENV_NAME} python=${{ matrix.python_version }} numpy pillow
103+
conda activate ${ENV_NAME}
104+
eval $INSTALLATION
105+
python ./test/smoke_test/smoke_test.py

0 commit comments

Comments
 (0)