build-conda-m1.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: Build M1 Conda
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - nightly
  7. - main
  8. - release/*
  9. tags:
  10. # NOTE: Binary build pipelines should only get triggered on release candidate builds
  11. # Release candidate tags look like: v1.11.0-rc1
  12. - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
  13. workflow_dispatch:
  14. jobs:
  15. generate-matrix:
  16. uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.1
  17. with:
  18. package-type: conda
  19. os: macos-arm64
  20. test-infra-repository: pytorch/test-infra
  21. test-infra-ref: release/2.1
  22. build:
  23. needs: generate-matrix
  24. strategy:
  25. fail-fast: false
  26. matrix:
  27. include:
  28. - repository: pytorch/vision
  29. pre-script: ""
  30. post-script: ""
  31. conda-package-directory: packaging/torchvision
  32. smoke-test-script: test/smoke_test.py
  33. package-name: torchvision
  34. name: ${{ matrix.repository }}
  35. uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@release/2.1
  36. with:
  37. conda-package-directory: ${{ matrix.conda-package-directory }}
  38. repository: ${{ matrix.repository }}
  39. ref: ""
  40. test-infra-repository: pytorch/test-infra
  41. test-infra-ref: release/2.1
  42. build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
  43. pre-script: ${{ matrix.pre-script }}
  44. post-script: ${{ matrix.post-script }}
  45. package-name: ${{ matrix.package-name }}
  46. smoke-test-script: ${{ matrix.smoke-test-script }}
  47. runner-type: macos-m1-12
  48. trigger-event: ${{ github.event_name }}
  49. secrets:
  50. CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
  51. CONDA_PYTORCHBOT_TOKEN_TEST: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}