Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit e73eb50

Browse files
committed
16KB page
1 parent 211e9e6 commit e73eb50

4 files changed

Lines changed: 20 additions & 22 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.aar filter=lfs diff=lfs merge=lfs -text

.github/workflows/build.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ name: Build the lib
22

33
on:
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

813
env:
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

jitpack.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
jdk:
2-
- openjdk17
3-
41
before_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

124
install:
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

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
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>

0 commit comments

Comments
 (0)