Skip to content

Commit f2ba735

Browse files
committed
Different maven package names of flavors
1 parent 2e77313 commit f2ba735

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ jobs:
9090
fi
9191
9292
FLAVOR="${{ inputs.flavor }}"
93+
if [ ! -z "$FLAVOR" ]; then
94+
GRADLE_ARGS+=" -Dflavor=${FLAVOR}"
95+
fi
96+
9397
if [[ "$FLAVOR" == "vulkan" || -z "$FLAVOR" ]]; then
9498
curl -O https://sdk.lunarg.com/sdk/download/1.4.321.1/linux/vulkansdk-linux-x86_64-1.4.321.1.tar.xz
9599
tar xf vulkansdk-linux-x86_64-1.4.321.1.tar.xz -C /tmp

extension/android/executorch_android/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ plugins {
1515

1616
def qnnVersion = System.properties['qnnVersion']
1717
def execuTorchVersion = System.properties['execuTorchVersion']
18+
def flavor = System.properties['flavor']
1819

1920
android {
2021
namespace = "org.pytorch.executorch"
@@ -69,7 +70,7 @@ mavenPublishing {
6970
publishToMavenCentral()
7071
signAllPublications()
7172

72-
coordinates("org.pytorch", "executorch-android" + (qnnVersion ? "-qnn" : ""), execuTorchVersion ? execuTorchVersion : "0.7.0-SNAPSHOT")
73+
coordinates("org.pytorch", "executorch-android" + (flavor ? "-" + flavor : ""), execuTorchVersion ? execuTorchVersion : "1.0.0-SNAPSHOT")
7374

7475
pom {
7576
name = "ExecuTorch Android"

0 commit comments

Comments
 (0)