From 4370c73d4b746d12cc45773cbb0ec31a6629dc27 Mon Sep 17 00:00:00 2001 From: Mark Saroufim Date: Tue, 15 Oct 2024 10:53:23 -0700 Subject: [PATCH 1/5] Create build_wheels_aarch64_linux.yml --- .../workflows/build_wheels_aarch64_linux.yml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/build_wheels_aarch64_linux.yml diff --git a/.github/workflows/build_wheels_aarch64_linux.yml b/.github/workflows/build_wheels_aarch64_linux.yml new file mode 100644 index 000000000..737330059 --- /dev/null +++ b/.github/workflows/build_wheels_aarch64_linux.yml @@ -0,0 +1,54 @@ +# From https://github.com/pytorch/test-infra/wiki/Using-Nova-Reusable-Build-Workflows +name: Build Linux Wheels + +on: + pull_request: + paths: + - build/packaging/** + - .github/workflows/build_wheels_linux.yml + - setup.py + push: + branches: + - nightly + - main + - release/* + tags: + # NOTE: Binary build pipelines should only get triggered on release candidate builds + # Release candidate tags look like: v1.11.0-rc1 + - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ + schedule: + - cron: '0 0 * * *' # Runs at midnight UTC every day + workflow_dispatch: + +jobs: + generate-matrix: + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + with: + package-type: wheel + os: linux-aarch64 + test-infra-repository: pytorch/test-infra + test-infra-ref: main + with-cuda: disable + + build: + needs: generate-matrix + permissions: + id-token: write + contents: read + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + with: + # Set the ref to an empty string instead of the default nightly because + # torchao doesn't have nightly branch setup yet, instead the build is + # triggered daily from main with a schedule + repository: pytorch/ao + ref: "" + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + env-var-script: packaging/env_var_script_linux.sh + pre-script: packaging/pre_build_script.sh + post-script: packaging/post_build_script.sh + smoke-test-script: packaging/smoke_test.py + package-name: torchao + trigger-event: ${{ github.event_name }} + architecture: aarch64 + secrets: + PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} From baca2bfcfc8f41aebeeb7b7e47e8b21f60a0dc6f Mon Sep 17 00:00:00 2001 From: Mark Saroufim Date: Tue, 15 Oct 2024 10:56:07 -0700 Subject: [PATCH 2/5] Update build_wheels_aarch64_linux.yml --- .github/workflows/build_wheels_aarch64_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels_aarch64_linux.yml b/.github/workflows/build_wheels_aarch64_linux.yml index 737330059..3db1cdf32 100644 --- a/.github/workflows/build_wheels_aarch64_linux.yml +++ b/.github/workflows/build_wheels_aarch64_linux.yml @@ -1,5 +1,5 @@ # From https://github.com/pytorch/test-infra/wiki/Using-Nova-Reusable-Build-Workflows -name: Build Linux Wheels +name: Build AARCH64 Linux Wheels on: pull_request: From d328c98ef32473996f02ef89adbb9554bdbd0b82 Mon Sep 17 00:00:00 2001 From: Mark Saroufim Date: Tue, 15 Oct 2024 11:01:46 -0700 Subject: [PATCH 3/5] Update build_wheels_aarch64_linux.yml --- .github/workflows/build_wheels_aarch64_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels_aarch64_linux.yml b/.github/workflows/build_wheels_aarch64_linux.yml index 3db1cdf32..12badd79d 100644 --- a/.github/workflows/build_wheels_aarch64_linux.yml +++ b/.github/workflows/build_wheels_aarch64_linux.yml @@ -5,7 +5,7 @@ on: pull_request: paths: - build/packaging/** - - .github/workflows/build_wheels_linux.yml + - .github/workflows/build_wheels_aarch64_linux.yml - setup.py push: branches: From 71176c13e80d5764477f6ad494668064f30cfccb Mon Sep 17 00:00:00 2001 From: Mark Saroufim Date: Tue, 15 Oct 2024 11:05:53 -0700 Subject: [PATCH 4/5] Update build_wheels_aarch64_linux.yml --- .github/workflows/build_wheels_aarch64_linux.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_wheels_aarch64_linux.yml b/.github/workflows/build_wheels_aarch64_linux.yml index 12badd79d..ae07752e7 100644 --- a/.github/workflows/build_wheels_aarch64_linux.yml +++ b/.github/workflows/build_wheels_aarch64_linux.yml @@ -50,5 +50,6 @@ jobs: package-name: torchao trigger-event: ${{ github.event_name }} architecture: aarch64 + setup-miniconda: false secrets: PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} From 874db1cfb280170d3ef3be65edd759b5b4bcac37 Mon Sep 17 00:00:00 2001 From: Mark Saroufim Date: Tue, 15 Oct 2024 11:23:58 -0700 Subject: [PATCH 5/5] Update build_wheels_aarch64_linux.yml --- .github/workflows/build_wheels_aarch64_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels_aarch64_linux.yml b/.github/workflows/build_wheels_aarch64_linux.yml index ae07752e7..56ea528a6 100644 --- a/.github/workflows/build_wheels_aarch64_linux.yml +++ b/.github/workflows/build_wheels_aarch64_linux.yml @@ -45,7 +45,7 @@ jobs: build-matrix: ${{ needs.generate-matrix.outputs.matrix }} env-var-script: packaging/env_var_script_linux.sh pre-script: packaging/pre_build_script.sh - post-script: packaging/post_build_script.sh + # post-script: packaging/post_build_script.sh smoke-test-script: packaging/smoke_test.py package-name: torchao trigger-event: ${{ github.event_name }}