-
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (39 loc) · 1.29 KB
/
main.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
38
39
40
41
42
43
name: Build PixelPlus Zygisk Module
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '11' # Adjust if needed
distribution: 'temurin'
- name: Set environment variables
run: |
echo "ANDROID_HOME=$HOME/Android/sdk" >> $GITHUB_ENV
- name: Set up Android SDK and NDK
uses: android-actions/setup-android@v2
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
link-to-sdk: true
ndk-version: r21e
- name: Debug
run: ls $(ANDROID_HOME) && ls $(ANDROID_HOME)/ndk
- name: Make script executable
run: chmod +x ./build.sh
- name: Build module
run: |
./build.sh # Consider adding input parameters for build modes etc.
- name: Archive artifacts (optional)
uses: actions/upload-artifact@v3
with:
name: pixelplus-build
path: magisk/pixelplus-$version.zip
# Notes:
# - Update paths and commands in the script if needed for your project structure.
# - Use GitHub secrets for sensitive information (e.g., API keys).
# - Consider employing actions from the GitHub Marketplace for advanced tasks.