Skip to content

Commit a60e312

Browse files
Create build-wheels-m1.yml (#822)
Co-authored-by: Eli Uriegas <1700823+seemethere@users.noreply.github.com>
1 parent 144445a commit a60e312

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build-wheels-m1.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build M1 Wheels
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- nightly
8+
- main
9+
- release/*
10+
tags:
11+
# NOTE: Binary build pipelines should only get triggered on release candidate builds
12+
# Release candidate tags look like: v1.11.0-rc1
13+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
14+
workflow_dispatch:
15+
16+
permissions:
17+
id-token: write
18+
contents: read
19+
20+
jobs:
21+
generate-matrix:
22+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
23+
with:
24+
package-type: wheel
25+
os: macos-arm64
26+
build:
27+
needs: generate-matrix
28+
name: pytorch/ao
29+
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main
30+
with:
31+
repository: pytorch/ao
32+
ref: ${{ github.head_ref || github.ref_name }}
33+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
34+
pre-script: packaging/pre_build_script.sh
35+
# post-script: packaging/post_build_script.sh
36+
package-name: torchao
37+
runner-type: macos-m1-stable
38+
smoke-test-script: test/smoke_test.py
39+
trigger-event: ${{ github.event_name }}

0 commit comments

Comments
 (0)