This repository was archived by the owner on Feb 11, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * .aar filter =lfs diff =lfs merge =lfs - text
Original file line number Diff line number Diff line change @@ -2,8 +2,13 @@ name: Build the lib
22
33on :
44 workflow_dispatch :
5- release :
6- types : [published]
5+ push :
6+ branches : [main]
7+ paths :
8+ - ' wnfslib/**'
9+ - ' lib/**'
10+ - ' build.gradle'
11+ - ' .github/workflows/build.yml'
712
813env :
914 CARGO_TERM_COLOR : always
@@ -100,10 +105,12 @@ jobs:
100105 name : release-sources
101106 path : release-artifacts/mobile-sources.jar
102107
103- - name : Attach artifacts to Release
104- if : github.event_name == 'release'
105- uses : softprops/action-gh-release@v2
106- with :
107- files : |
108- release-artifacts/mobile.aar
109- release-artifacts/mobile-sources.jar
108+ - name : Commit AAR to repo for JitPack
109+ run : |
110+ git config user.name "github-actions[bot]"
111+ git config user.email "github-actions[bot]@users.noreply.github.com"
112+ git lfs install
113+ cp release-artifacts/mobile.aar mobile.aar
114+ git add mobile.aar
115+ git diff --cached --quiet && echo "No changes to commit" || git commit -m "Update built AAR for JitPack [skip ci]"
116+ git push origin HEAD:main
Original file line number Diff line number Diff line change 1- jdk :
2- - openjdk17
3-
41before_install :
52 - git lfs pull
6- - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
7- - source $HOME/.cargo/env
8- - rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android
9- - echo "ndk.dir=$ANDROID_NDK_HOME" >> local.properties
10- - echo "sdk.dir=$ANDROID_HOME" >> local.properties
113
124install :
13- - source $HOME/.cargo/env
14- - ./gradlew lib:assembleRelease
15- - FILE="-Dfile=lib/build/outputs/aar/lib-release.aar"
16- - mvn install:install-file $FILE -DgroupId=com.github.functionland -DartifactId=wnfs-android -Dversion=1.8.7 -Dpackaging=aar -DgeneratePom=true
5+ - FILE="-Dfile=mobile.aar"
6+ - mvn install:install-file $FILE -DgroupId=com.github.functionland -DartifactId=wnfs-android -Dversion=1.8.4 -Dpackaging=aar -DgeneratePom=true
Original file line number Diff line number Diff line change 55 <modelVersion >4.0.0</modelVersion >
66 <groupId >com.group.module</groupId >
77 <artifactId >wnfs-android</artifactId >
8- <version >1.8.7 </version >
8+ <version >1.8.4 </version >
99</project >
You can’t perform that action at this time.
0 commit comments