-
Notifications
You must be signed in to change notification settings - Fork 95
37 lines (36 loc) · 1.22 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI-Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build Module
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: temurin
java-version: 11
cache: gradle
- name: Test Build
run: |
chmod +x ./gradlew
./gradlew :module:assembleRelease
- name: Get Module Version
id: module-version
run: |
MODULE_VERSION=$(cat module.gradle | grep "moduleVersion =" | awk -F'"' '{print $2}')
echo "version=$MODULE_VERSION" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: ZygiskFrida-${{ steps.module-version.outputs.version }}-release
path: out/magisk_module_zygisk_release
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: ZygiskFrida-${{ steps.module-version.outputs.version }}-riru-release
path: out/magisk_module_riru_release