Skip to content

Commit 4401fab

Browse files
authored
Build vulkan+xnnpack AAR (#10301)
Add a flavor option "vulkan+xnnpack" in the workflow
1 parent 5b7f235 commit 4401fab

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

+10
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+
- "vulkan+xnnpack"
1419
schedule:
1520
- cron: 0 10 * * *
1621

@@ -86,6 +91,11 @@ jobs:
8691
sed -i "s/\(coordinates(\"org.pytorch\", \"executorch-android\", \"\)\([0-9]\+.[0-9]\+.[0-9]\+\)\(\")\)/\1$VERSION\3/" extension/android/executorch_android/build.gradle
8792
fi
8893
94+
FLAVOR="${{ inputs.flavor }}"
95+
if [[ "$FLAVOR" == "vulkan+xnnpack" ]]; then
96+
export EXECUTORCH_BUILD_VULKAN=ON
97+
fi
98+
8999
# Build AAR Package
90100
mkdir aar-out
91101
export BUILD_AAR_DIR=aar-out

0 commit comments

Comments
 (0)