Skip to content

Commit

Permalink
Create build-wheels-m1.yml (#822)
Browse files Browse the repository at this point in the history
Co-authored-by: Eli Uriegas <[email protected]>
  • Loading branch information
2 people authored and andrewor14 committed Sep 10, 2024
1 parent 3f7fc14 commit 59664cc
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-wheels-m1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build M1 Wheels

on:
pull_request:
push:
branches:
- nightly
- main
- release/*
tags:
# NOTE: Binary build pipelines should only get triggered on release candidate builds
# Release candidate tags look like: v1.11.0-rc1
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: wheel
os: macos-arm64
build:
needs: generate-matrix
name: pytorch/ao
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main
with:
repository: pytorch/ao
ref: ${{ github.head_ref || github.ref_name }}
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: packaging/pre_build_script.sh
# post-script: packaging/post_build_script.sh
package-name: torchao
runner-type: macos-m1-stable
smoke-test-script: test/smoke_test.py
trigger-event: ${{ github.event_name }}

0 comments on commit 59664cc

Please sign in to comment.