Skip to content

Commit f82b573

Browse files
committed
Try to build QNN AAR
1 parent 8d6aa35 commit f82b573

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/android-release-artifacts.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
description: Upload the AAR to maven staging repository
1212
required: false
1313
type: boolean
14+
flavor:
15+
type: choice
16+
options:
17+
- "xnnpack"
18+
- "qnn+xnnpack"
1419

1520
concurrency:
1621
group: ${{ github.workflow }}-${{ github.ref }}
@@ -35,8 +40,8 @@ jobs:
3540
build-aar:
3641
name: build-aar
3742
needs: check-if-aar-exists
43+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
3844
if: ${{ !github.event.pull_request.head.repo.fork }}
39-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
4045
secrets: inherit
4146
permissions:
4247
id-token: write
@@ -69,6 +74,15 @@ jobs:
6974
7075
echo -n "$SECRET_EXECUTORCH_MAVEN_SIGNING_GPG_KEY_CONTENTS" | base64 -d > /tmp/secring.gpg
7176
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+
7286
# Build AAR Package
7387
mkdir aar-out
7488
export BUILD_AAR_DIR=aar-out

0 commit comments

Comments
 (0)