build-wheels-m1.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: Build M1 Wheels
  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: wheel
  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: packaging/pre_build_script.sh
  30. post-script: packaging/post_build_script.sh
  31. smoke-test-script: test/smoke_test.py
  32. package-name: torchvision
  33. name: ${{ matrix.repository }}
  34. uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.1
  35. with:
  36. repository: ${{ matrix.repository }}
  37. ref: ""
  38. test-infra-repository: pytorch/test-infra
  39. test-infra-ref: release/2.1
  40. build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
  41. pre-script: ${{ matrix.pre-script }}
  42. post-script: ${{ matrix.post-script }}
  43. package-name: ${{ matrix.package-name }}
  44. runner-type: macos-m1-12
  45. smoke-test-script: ${{ matrix.smoke-test-script }}
  46. trigger-event: ${{ github.event_name }}
  47. secrets:
  48. AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
  49. AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}