Skip to content

Commit ae8384b

Browse files
msaroufimandrewor14
authored andcommitted
Don't run mac builds per commit (#842)
* Don't run mac builds per commit * Update and rename build-wheels-m1.yml to build-wheels_m1.yml * Update build-wheels_m1.yml * Update build-wheels_m1.yml
1 parent 59664cc commit ae8384b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build-wheels-m1.yml renamed to .github/workflows/build-wheels_m1.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Build M1 Wheels
2-
32
on:
43
pull_request:
4+
paths:
5+
- build/packaging/**
6+
- .github/workflows/build_wheels_m1.yml
7+
- setup.py
58
push:
69
branches:
710
- nightly
@@ -11,12 +14,12 @@ on:
1114
# NOTE: Binary build pipelines should only get triggered on release candidate builds
1215
# Release candidate tags look like: v1.11.0-rc1
1316
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
17+
schedule:
18+
- cron: '0 0 * * *' # Runs at midnight UTC every day
1419
workflow_dispatch:
15-
1620
permissions:
1721
id-token: write
1822
contents: read
19-
2023
jobs:
2124
generate-matrix:
2225
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
@@ -25,6 +28,7 @@ jobs:
2528
os: macos-arm64
2629
build:
2730
needs: generate-matrix
31+
if: github.repository_owner == 'pytorch'
2832
name: pytorch/ao
2933
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main
3034
with:

0 commit comments

Comments
 (0)