Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanneve1 authored Jan 31, 2024
1 parent 3b0c832 commit bb799a1
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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 up Android SDK and NDK
uses: android-actions/setup-android@v2
with:
# Configure specific Android SDK and NDK versions
sdk-version: '30'
ndk-version: '21.4.7075529' # Matches the script
- name: Set environment variables
run: |
echo "ANDROID_HOME=$HOME/Library/Android/sdk" >> $GITHUB_ENV
echo "ANDROID_NDK_HOME=$HOME/Library/Android/ndk/$NDK_VERSION" >> $GITHUB_ENV
- 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.

0 comments on commit bb799a1

Please sign in to comment.