Skip to content

Commit bf58902

Browse files
authored
[Nova] Caller for Conda M1 builds (#6915)
* [Nova] Caller for Conda M1 builds * rename job
1 parent 6ad8044 commit bf58902

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build M1 Conda
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- nightly
8+
workflow_dispatch:
9+
10+
jobs:
11+
generate-matrix:
12+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
13+
with:
14+
package-type: conda
15+
os: macos-arm64
16+
test-infra-repository: pytorch/test-infra
17+
test-infra-ref: main
18+
build:
19+
needs: generate-matrix
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
include:
24+
- repository: pytorch/vision
25+
pre-script: ""
26+
post-script: ""
27+
conda-package-directory: packaging/torchvision
28+
smoke-test-script: test/smoke_test.py
29+
package-name: torchvision
30+
name: ${{ matrix.repository }}
31+
uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@main
32+
with:
33+
conda-package-directory: ${{ matrix.conda-package-directory }}
34+
repository: ${{ matrix.repository }}
35+
ref: ""
36+
test-infra-repository: pytorch/test-infra
37+
test-infra-ref: main
38+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
39+
pre-script: ${{ matrix.pre-script }}
40+
post-script: ${{ matrix.post-script }}
41+
package-name: ${{ matrix.package-name }}
42+
smoke-test-script: ${{ matrix.smoke-test-script }}
43+
runner-type: macos-m1-12
44+
# Using "development" as trigger event so these binaries are not uploaded
45+
# to official channels yet
46+
trigger-event: development
47+
secrets:
48+
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}

0 commit comments

Comments
 (0)