File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 11
11
description : Upload the AAR to maven staging repository
12
12
required : false
13
13
type : boolean
14
+ flavor :
15
+ type : choice
16
+ options :
17
+ - " xnnpack"
18
+ - " qnn+xnnpack"
14
19
15
20
concurrency :
16
21
group : ${{ github.workflow }}-${{ github.ref }}
35
40
build-aar :
36
41
name : build-aar
37
42
needs : check-if-aar-exists
43
+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
38
44
if : ${{ !github.event.pull_request.head.repo.fork }}
39
- uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
40
45
secrets : inherit
41
46
permissions :
42
47
id-token : write
69
74
70
75
echo -n "$SECRET_EXECUTORCH_MAVEN_SIGNING_GPG_KEY_CONTENTS" | base64 -d > /tmp/secring.gpg
71
76
77
+ FLAVOR="${{ inputs.flavor}}"
78
+
79
+ if [[ "${FLAVOR}" == "qnn+xnnpack"]; then
80
+ PYTHON_EXECUTABLE=python bash .ci/scripts/setup-qnn-deps.sh
81
+ PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
82
+ export EXECUTORCH_BUILD_QNN=ON
83
+ export QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029
84
+ fi
85
+
72
86
# Build AAR Package
73
87
mkdir aar-out
74
88
export BUILD_AAR_DIR=aar-out
You can’t perform that action at this time.
0 commit comments