diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..f0c81a15 --- /dev/null +++ b/.github/workflows/main.yml @@ -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. +