Skip to content

Commit ce4822b

Browse files
authored
Create build_wheels_aarch64_linux.yml (#1083)
* Create build_wheels_aarch64_linux.yml * Update build_wheels_aarch64_linux.yml * Update build_wheels_aarch64_linux.yml * Update build_wheels_aarch64_linux.yml * Update build_wheels_aarch64_linux.yml
1 parent 0b71b8d commit ce4822b

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# From https://github.com/pytorch/test-infra/wiki/Using-Nova-Reusable-Build-Workflows
2+
name: Build AARCH64 Linux Wheels
3+
4+
on:
5+
pull_request:
6+
paths:
7+
- build/packaging/**
8+
- .github/workflows/build_wheels_aarch64_linux.yml
9+
- setup.py
10+
push:
11+
branches:
12+
- nightly
13+
- main
14+
- release/*
15+
tags:
16+
# NOTE: Binary build pipelines should only get triggered on release candidate builds
17+
# Release candidate tags look like: v1.11.0-rc1
18+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
19+
schedule:
20+
- cron: '0 0 * * *' # Runs at midnight UTC every day
21+
workflow_dispatch:
22+
23+
jobs:
24+
generate-matrix:
25+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
26+
with:
27+
package-type: wheel
28+
os: linux-aarch64
29+
test-infra-repository: pytorch/test-infra
30+
test-infra-ref: main
31+
with-cuda: disable
32+
33+
build:
34+
needs: generate-matrix
35+
permissions:
36+
id-token: write
37+
contents: read
38+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
39+
with:
40+
# Set the ref to an empty string instead of the default nightly because
41+
# torchao doesn't have nightly branch setup yet, instead the build is
42+
# triggered daily from main with a schedule
43+
repository: pytorch/ao
44+
ref: ""
45+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
46+
env-var-script: packaging/env_var_script_linux.sh
47+
pre-script: packaging/pre_build_script.sh
48+
# post-script: packaging/post_build_script.sh
49+
smoke-test-script: packaging/smoke_test.py
50+
package-name: torchao
51+
trigger-event: ${{ github.event_name }}
52+
architecture: aarch64
53+
setup-miniconda: false
54+
secrets:
55+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)