Skip to content

Commit 331b031

Browse files
authored
Add aarch64 to validation framework (#1474)
1 parent eba456f commit 331b031

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/scripts/validate_binaries.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ else
2727

2828
if [[ ${TARGET_OS} == 'windows' ]]; then
2929
python ./test/smoke_test/smoke_test.py
30+
elif [[ ${TARGET_OS} == 'aarch64-linux' ]]; then
31+
python3 ./test/smoke_test/smoke_test.py --package=torchonly
3032
else
3133
python3 ./test/smoke_test/smoke_test.py
3234
fi
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Validate Aarch64 linux binaries
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
channel:
7+
description: "Channel to use (nightly, test, release, all)"
8+
required: true
9+
type: string
10+
ref:
11+
description: 'Reference to checkout, defaults to empty'
12+
default: ""
13+
required: false
14+
type: string
15+
workflow_dispatch:
16+
inputs:
17+
channel:
18+
description: "Channel to use (nightly, test, release, all)"
19+
required: true
20+
type: choice
21+
options:
22+
- release
23+
- nightly
24+
- test
25+
- all
26+
ref:
27+
description: 'Reference to checkout, defaults to empty'
28+
default: ""
29+
required: false
30+
type: string
31+
32+
jobs:
33+
generate-aarch64-linux-matrix:
34+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
35+
with:
36+
package-type: wheel
37+
os: linux-aarch64
38+
channel: ${{ inputs.channel }}
39+
with-cuda: disable
40+
41+
linux:
42+
needs: generate-aarch64-linux-matrix
43+
strategy:
44+
matrix: ${{ fromJson(needs.generate-linux-matrix.outputs.matrix) }}
45+
fail-fast: false
46+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
47+
name: ${{ matrix.build_name }}
48+
with:
49+
runner: ${{ matrix.validation_runner }}
50+
repository: "pytorch/builder"
51+
ref: ${{ inputs.ref || github.ref }}
52+
job-name: ${{ matrix.build_name }}
53+
binary-matrix: ${{ toJSON(matrix) }}
54+
script: |
55+
set -ex
56+
export ENV_NAME="conda-env-${{ github.run_id }}"
57+
export TARGET_OS="aarch64-linux"
58+
eval "$(conda shell.bash hook)"
59+
60+
# Standart case: Validate binaries
61+
source ./.github/scripts/validate_binaries.sh

0 commit comments

Comments
 (0)