File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
extension/android/executorch_android Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 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'
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
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments