Skip to content

Commit ca4646e

Browse files
committed
Update
1 parent a3cb8d1 commit ca4646e

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: Version name to be uploaded for AAR release
88
required: false
99
type: string
10+
upload_to_maven:
11+
description: Upload the AAR to maven staging repository
12+
required: false
13+
type: boolean
1014

1115
concurrency:
1216
group: ${{ github.workflow }}-${{ github.ref }}
@@ -74,6 +78,12 @@ jobs:
7478
7579
shasum -a 256 "${ARTIFACTS_DIR_NAME}/executorch.aar"
7680
81+
# Publish to maven staging
82+
UPLOAD_TO_MAVEN="${{ inputs.upload_to_maven }}"
83+
if [[ "$UPLOAD_TO_MAVEN" == "true" ]]; then
84+
(cd aar-out; ANDROID_HOME="${ANDROID_SDK:-/opt/android/sdk}" ./gradlew :executorch_android:publishToMavenCentral)
85+
fi
86+
7787
upload-release-aar:
7888
name: upload-release-aar
7989
needs: build-aar

extension/android/executorch_android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ mavenPublishing {
4848
publishToMavenCentral(SonatypeHost.DEFAULT)
4949
signAllPublications()
5050

51-
coordinates("org.pytorch", "executorch-android", "0.6.0-rc1")
51+
coordinates("org.pytorch", "executorch-android", "0.7.0")
5252

5353
pom {
5454
name = "ExecuTorch Android"

scripts/build_android_library.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ build_aar() {
126126
find . -type f -name "*.so" -exec "$ANDROID_NDK"/toolchains/llvm/prebuilt/*/bin/llvm-strip {} \;
127127
fi
128128
ANDROID_HOME="${ANDROID_SDK:-/opt/android/sdk}" ./gradlew build
129-
ANDROID_HOME="${ANDROID_SDK:-/opt/android/sdk}" ./gradlew :executorch_android:publishToMavenCentral
130129
cp executorch_android/build/outputs/aar/executorch_android-debug.aar executorch.aar
131130
popd
132131
}

0 commit comments

Comments
 (0)