Skip to content

Commit 6aee5ed

Browse files
Arm64 workflow enablement (#8947)
Added workflow for arm64 build of torchvision (limited to nightly branch) Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>
1 parent 0721867 commit 6aee5ed

File tree

2 files changed

+54
-3
lines changed

2 files changed

+54
-3
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build Windows ARM64 Wheels
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/build_wheel_windows_arm64.yml
7+
push:
8+
branches:
9+
- nightly
10+
- release/*
11+
tags:
12+
# NOTE: Binary build pipelines should only get triggered on release candidate builds
13+
# Release candidate tags look like: v1.11.0-rc1
14+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
15+
workflow_dispatch:
16+
17+
permissions:
18+
id-token: write
19+
contents: read
20+
21+
jobs:
22+
generate-matrix:
23+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
24+
with:
25+
package-type: wheel
26+
os: windows-arm64
27+
test-infra-repository: pytorch/test-infra
28+
test-infra-ref: main
29+
with-cuda: disable
30+
31+
build:
32+
needs: generate-matrix
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
include:
37+
- repository: pytorch/vision
38+
smoke-test-script: test/smoke_test.py
39+
pre-script: packaging/pre_build_script_arm64.sh
40+
package-name: torchvision
41+
architecture: "arm64"
42+
name: ${{ matrix.repository }}
43+
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main
44+
with:
45+
repository: ${{ matrix.repository }}
46+
ref: ""
47+
test-infra-repository: pytorch/test-infra
48+
test-infra-ref: main
49+
pre-script: ${{ matrix.pre-script }}
50+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
51+
package-name: ${{ matrix.package-name }}
52+
smoke-test-script: ${{ matrix.smoke-test-script }}
53+
trigger-event: ${{ github.event_name }}
54+
architecture: ${{ matrix.architecture }}

packaging/pre_build_script_arm64.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ echo "Building vision dependencies and wheel started."
66
export SRC_PATH="$GITHUB_WORKSPACE/$SRC_DIR"
77
export CMAKE_BUILD_TYPE="$BUILD_TYPE"
88
export VCVARSALL_PATH="$DEPENDENCIES_DIR/VSBuildTools/VC/Auxiliary/Build/vcvarsall.bat"
9-
export CONDA_PREFIX="$DEPENDENCIES_DIR"
10-
export PATH="$PATH:$CONDA_PREFIX/Library/bin"
11-
export DISTUTILS_USE_SDK=1
129
export TRIPLET_FILE="triplets/arm64-windows.cmake"
1310
export PYTORCH_VERSION="$PYTORCH_VERSION"
1411
export CHANNEL="$CHANNEL"

0 commit comments

Comments
 (0)