|
| 1 | +name: Build Windows Conda |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - nightly |
| 8 | + - main |
| 9 | + - release/* |
| 10 | + tags: |
| 11 | + # NOTE: Binary build pipelines should only get triggered on release candidate builds |
| 12 | + # Release candidate tags look like: v1.11.0-rc1 |
| 13 | + - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ |
| 14 | + workflow_dispatch: |
| 15 | + |
| 16 | +jobs: |
| 17 | + generate-matrix: |
| 18 | + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
| 19 | + with: |
| 20 | + package-type: conda |
| 21 | + os: windows |
| 22 | + test-infra-repository: pytorch/test-infra |
| 23 | + test-infra-ref: main |
| 24 | + build: |
| 25 | + needs: generate-matrix |
| 26 | + strategy: |
| 27 | + fail-fast: false |
| 28 | + matrix: |
| 29 | + include: |
| 30 | + - repository: pytorch/audio |
| 31 | + pre-script: packaging/ffmpeg/build.bat |
| 32 | + env-script: "" |
| 33 | + wheel-build-params: "--plat-name win_amd64" |
| 34 | + post-script: "" |
| 35 | + smoke-test-script: "" |
| 36 | + package-name: torchaudio |
| 37 | + conda-package-directory: packaging/torchaudio |
| 38 | + name: ${{ matrix.repository }} |
| 39 | + uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main |
| 40 | + with: |
| 41 | + conda-package-directory: ${{ matrix.conda-package-directory }} |
| 42 | + repository: ${{ matrix.repository }} |
| 43 | + ref: "" |
| 44 | + test-infra-repository: pytorch/test-infra |
| 45 | + test-infra-ref: main |
| 46 | + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} |
| 47 | + pre-script: ${{ matrix.pre-script }} |
| 48 | + env-script: ${{ matrix.env-script }} |
| 49 | + post-script: ${{ matrix.post-script }} |
| 50 | + package-name: ${{ matrix.package-name }} |
| 51 | + smoke-test-script: ${{ matrix.smoke-test-script }} |
| 52 | + # Using "development" as trigger event so these binaries are not uploaded |
| 53 | + # to official channels yet |
| 54 | + trigger-event: development |
| 55 | + secrets: |
| 56 | + AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }} |
| 57 | + AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }} |
0 commit comments