From e2aaec96bad05f97d321731183253e5908c8432b Mon Sep 17 00:00:00 2001 From: Omkar Salpekar Date: Fri, 4 Nov 2022 14:08:40 -0700 Subject: [PATCH 1/2] [Nova] Caller for Conda M1 builds --- .github/workflows/build-conda-m1.yml | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/build-conda-m1.yml diff --git a/.github/workflows/build-conda-m1.yml b/.github/workflows/build-conda-m1.yml new file mode 100644 index 00000000000..b309bfee291 --- /dev/null +++ b/.github/workflows/build-conda-m1.yml @@ -0,0 +1,48 @@ +name: Build Macos Conda + +on: + pull_request: + push: + branches: + - nightly + workflow_dispatch: + +jobs: + generate-matrix: + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + with: + package-type: conda + os: macos-arm64 + test-infra-repository: pytorch/test-infra + test-infra-ref: main + build: + needs: generate-matrix + strategy: + fail-fast: false + matrix: + include: + - repository: pytorch/vision + pre-script: "" + post-script: "" + conda-package-directory: packaging/torchvision + smoke-test-script: test/smoke_test.py + package-name: torchvision + name: ${{ matrix.repository }} + uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@main + with: + conda-package-directory: ${{ matrix.conda-package-directory }} + repository: ${{ matrix.repository }} + ref: "" + test-infra-repository: pytorch/test-infra + test-infra-ref: main + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + pre-script: ${{ matrix.pre-script }} + post-script: ${{ matrix.post-script }} + package-name: ${{ matrix.package-name }} + smoke-test-script: ${{ matrix.smoke-test-script }} + runner-type: macos-m1-12 + # Using "development" as trigger event so these binaries are not uploaded + # to official channels yet + trigger-event: development + secrets: + CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }} From 3896f1ab3fe59ef86a65bdc613ff488d2d11f562 Mon Sep 17 00:00:00 2001 From: Omkar Salpekar Date: Fri, 4 Nov 2022 15:09:22 -0700 Subject: [PATCH 2/2] rename job --- .github/workflows/build-conda-m1.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-conda-m1.yml b/.github/workflows/build-conda-m1.yml index b309bfee291..dd4559f78a5 100644 --- a/.github/workflows/build-conda-m1.yml +++ b/.github/workflows/build-conda-m1.yml @@ -1,4 +1,4 @@ -name: Build Macos Conda +name: Build M1 Conda on: pull_request: