Skip to content

Commit 7ec5f32

Browse files
committed
update version
1 parent 830f809 commit 7ec5f32

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ jobs:
8484
8585
echo -n "$SECRET_EXECUTORCH_MAVEN_SIGNING_GPG_KEY_CONTENTS" | base64 -d > /tmp/secring.gpg
8686
87+
GRADLE_ARGS=""
88+
8789
# Update the version name in build.gradle in case of maven publish
8890
VERSION="${{ inputs.version }}"
8991
if [ ! -z "$VERSION" ]; then
90-
sed -i "s/\(coordinates(\"org.pytorch\", \"executorch-android\", \"\)\([0-9]\+.[0-9]\+.[0-9]\+\)\(\")\)/\1$VERSION\3/" extension/android/executorch_android/build.gradle
92+
GRADLE_ARGS+="-DexecuTorchVersion=${VERSION}"
9193
fi
9294
93-
GRADLE_ARGS=""
94-
9595
FLAVOR="${{ inputs.flavor }}"
9696
if [[ "$FLAVOR" == "vulkan+xnnpack" || -z "$FLAVOR" ]]; then
9797
export EXECUTORCH_BUILD_VULKAN=ON

extension/android/executorch_android/build.gradle

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

1616
def qnnVersion = System.properties['qnnVersion']
17+
def execuTorchVersion = System.properties['execuTorchVersion']
1718

1819
android {
1920
namespace = "org.pytorch.executorch"
@@ -68,7 +69,7 @@ mavenPublishing {
6869
publishToMavenCentral()
6970
signAllPublications()
7071

71-
coordinates("org.pytorch", "executorch-android" + (qnnVersion ? "-qnn" : ""), "0.7.0-SNAPSHOT")
72+
coordinates("org.pytorch", "executorch-android" + (qnnVersion ? "-qnn" : ""), execuTorchVersion ? execuTorchVersion : "0.7.0-SNAPSHOT")
7273

7374
pom {
7475
name = "ExecuTorch Android"

0 commit comments

Comments
 (0)