diff --git a/.github/workflows/android-release-artifacts.yml b/.github/workflows/android-release-artifacts.yml index 2503bf2214b..b35bb6859e7 100644 --- a/.github/workflows/android-release-artifacts.yml +++ b/.github/workflows/android-release-artifacts.yml @@ -11,6 +11,11 @@ on: description: Upload the AAR to maven staging repository required: false type: boolean + flavor: + type: choice + options: + - "xnnpack" + - "qnn+xnnpack" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -69,6 +74,16 @@ jobs: echo -n "$SECRET_EXECUTORCH_MAVEN_SIGNING_GPG_KEY_CONTENTS" | base64 -d > /tmp/secring.gpg + FLAVOR="${{ inputs.flavor }}" + + if [[ "$FLAVOR" == "qnn+xnnpack" ]]; then + PYTHON_EXECUTABLE=python bash .ci/scripts/setup-qnn-deps.sh + PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh + export EXECUTORCH_BUILD_QNN=ON + export QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029 + export ANDROID_ABIS=arm64-v8a + fi + # Build AAR Package mkdir aar-out export BUILD_AAR_DIR=aar-out