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 36
36
id-token : write
37
37
contents : read
38
38
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
39
40
runner : linux.2xlarge
40
41
docker-image : executorch-ubuntu-22.04-clang12-android
41
42
submodules : ' true'
52
53
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool buck2
53
54
export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
54
55
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
+
55
66
# Build AAR Package
56
67
mkdir aar-out
57
68
export BUILD_AAR_DIR=aar-out
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ mavenPublishing {
48
48
publishToMavenCentral(SonatypeHost . DEFAULT )
49
49
signAllPublications()
50
50
51
- coordinates(" org.pytorch" , " executorch-android" , " 0.5 .0-SNAPSHOT " )
51
+ coordinates(" org.pytorch" , " executorch-android" , " 0.6 .0-rc1 " )
52
52
53
53
pom {
54
54
name = " ExecuTorch Android"
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ build_aar() {
126
126
find . -type f -name " *.so" -exec " $ANDROID_NDK " /toolchains/llvm/prebuilt/* /bin/llvm-strip {} \;
127
127
fi
128
128
ANDROID_HOME=" ${ANDROID_SDK:-/ opt/ android/ sdk} " ./gradlew build
129
+ ANDROID_HOME=" ${ANDROID_SDK:-/ opt/ android/ sdk} " ./gradlew :executorch_android:publishToMavenCentral
129
130
cp executorch_android/build/outputs/aar/executorch_android-debug.aar executorch.aar
130
131
popd
131
132
}
You can’t perform that action at this time.
0 commit comments