Skip to content

Commit 779f8e8

Browse files
committed
test-ci
1 parent 650bd61 commit 779f8e8

File tree

2 files changed

+29
-15
lines changed

2 files changed

+29
-15
lines changed

.github/workflows/android.yml

+27-13
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,53 @@ jobs:
1818
with:
1919
format: YYYYMMDD-HH
2020
utcOffset: "+08:00"
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222
with:
2323
submodules: recursive
24-
- name: Decode Keystore
25-
env:
26-
ENCODED_STRING: ${{ secrets.SIGNING_STORE_BASE64 }}
27-
run: echo $ENCODED_STRING | base64 -di > app/keystore.jks
28-
- uses: AdoptOpenJDK/install-jdk@v1
24+
- name: Install dependencies
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y libarchive-zip-perl
28+
- name: Decode proguard rules
29+
uses: mobiledevops/secret-to-file-action@v1
2930
with:
30-
version: '17'
31-
architecture: x64
31+
base64-encoded-secret: ${{ secrets.PROGUARD_RULES }}
32+
filename: "app/proguard-rules.pro"
33+
- name: Decode keystore
34+
uses: mobiledevops/secret-to-file-action@v1
35+
with:
36+
base64-encoded-secret: ${{ secrets.SIGNING_STORE_BASE64 }}
37+
filename: "app/keystore.jks"
3238
- uses: AdoptOpenJDK/install-jdk@v1
3339
with:
34-
version: '15'
40+
version: '17'
3541
architecture: x64
36-
targets: 'JAVA_HOME_15'
3742
- name: Build Riru modules
3843
run: cd ./module && bash ./make.sh
44+
env:
45+
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
46+
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
47+
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
3948
- name: Grant execute permission for gradlew
4049
run: chmod +x gradlew
4150
- name: Build with Gradle
42-
run: ./gradlew clean ":app:assembleRelease"
51+
run: ./gradlew clean && ./gradlew ":app:assembleReleaseXposed"
4352
env:
4453
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
4554
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
4655
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
4756
- name: Upload Apk
48-
uses: actions/upload-artifact@v2.2.0
57+
uses: actions/upload-artifact@v4
4958
with:
5059
name: xposed.${{ steps.current-time.outputs.formattedTime }}
5160
path: app/build/outputs/apk/release/*.apk
61+
- name: Upload Mapping
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: mapping.${{ steps.current-time.outputs.formattedTime }}
65+
path: app/build/outputs/apk/mapping/release
5266
- name: Upload Riru Modules
53-
uses: actions/upload-artifact@v2.2.0
67+
uses: actions/upload-artifact@v4
5468
with:
5569
name: magisk.${{ steps.current-time.outputs.formattedTime }}
5670
path: |

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ android {
1313

1414
buildTypes {
1515
release {
16-
minifyEnabled false
17-
shrinkResources false
16+
minifyEnabled System.getenv("BUILD_RELEASE_MINIFYENABLED")?.toBoolean() ?: false
17+
shrinkResources System.getenv("BUILD_RELEASE_MINIFYENABLED")?.toBoolean() ?: false
1818
zipAlignEnabled true
1919
proguardFiles 'proguard-rules.pro'
2020
}

0 commit comments

Comments
 (0)