Skip to content

Commit 20bf919

Browse files
committed
[TEST ONLY]
1 parent 6182d3e commit 20bf919

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
id-token: write
3737
contents: read
3838
with:
39+
secrets-env: EXECUTORCH_MAVEN_SIGNING_KEYID EXECUTORCH_MAVEN_SIGNING_PASSWORD EXECUTORCH_MAVEN_CENTRAL_PASSWORD EXECUTORCH_MAVEN_CENTRAL_USERNAME EXECUTORCH_MAVEN_SIGNING_GPG_KEY_CONTENTS
3940
runner: linux.2xlarge
4041
docker-image: executorch-ubuntu-22.04-clang12-android
4142
submodules: 'true'
@@ -52,6 +53,16 @@ jobs:
5253
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool buck2
5354
export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
5455
56+
mkdir -p ~/.gradle
57+
touch ~/.gradle/gradle.properties
58+
echo "signing.keyId=${SECRET_EXECUTORCH_MAVEN_SIGNING_KEYID}" >> ~/.gradle/gradle.properties
59+
echo "signing.password=${SECRET_EXECUTORCH_MAVEN_SIGNING_PASSWORD}" >> ~/.gradle/gradle.properties
60+
echo "mavenCentralUsername=${SECRET_EXECUTORCH_MAVEN_CENTRAL_USERNAME}" >> ~/.gradle/gradle.properties
61+
echo "mavenCentralPassword=${SECRET_EXECUTORCH_MAVEN_CENTRAL_PASSWORD}" >> ~/.gradle/gradle.properties
62+
signing.secretKeyRingFile=/tmp/secring.gpg
63+
64+
echo -n "$SECRET_EXECUTORCH_MAVEN_SIGNING_GPG_KEY_CONTENTS" | base64 --decode -o /tmp/secring.gpg
65+
5566
# Build AAR Package
5667
mkdir aar-out
5768
export BUILD_AAR_DIR=aar-out

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.5.0-SNAPSHOT")
51+
coordinates("org.pytorch", "executorch-android", "0.6.0-rc1")
5252

5353
pom {
5454
name = "ExecuTorch Android"

scripts/build_android_library.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ 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
129130
cp executorch_android/build/outputs/aar/executorch_android-debug.aar executorch.aar
130131
popd
131132
}

0 commit comments

Comments
 (0)