Build kernel #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build kernel | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| env: | |
| CLANG_URL: https://github.com/XSans0/WeebX-Clang/releases/download/WeebX-Clang-19.1.5-release/WeebX-Clang-19.1.5.tar.gz | |
| strategy: | |
| matrix: | |
| target: [a51, f41, m31, m31s, m21, gta4xl, gta4xlwifi] | |
| name: "Build for ${{matrix.target}}" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Set build date fallback | |
| id: date | |
| run: echo "date=$(date +%F)" >> "$GITHUB_OUTPUT" | |
| - name: Download WeebX Clang | |
| run: | | |
| wget -qO weebx-clang.tar.gz "$CLANG_URL" | |
| rm -rf toolchain | |
| mkdir toolchain | |
| tar -xzf weebx-clang.tar.gz -C toolchain --strip-components=1 | |
| rm -rf weebx-clang.tar.gz | |
| - name: Apply KernelSU Next SUSFS patch | |
| run: | | |
| cd Patches | |
| cp * ../KernelSU-Next/ | |
| cd .. | |
| cd KernelSU-Next/ | |
| patch -p1 < ksun-susfs-2.0.0.patch | |
| - name: Build kernel | |
| run: | | |
| python3 build_kernel.py --target=${{ matrix.target }} | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: AOSP_${{ matrix.target }}_${{ steps.date.outputs.date }}_SUSFS | |
| path: AOSP_${{ matrix.target }}_${{ steps.date.outputs.date }}_SUSFS.zip | |
| if-no-files-found: error | |
| - name: Upload Logs | |
| if: failure() | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: AOSP_${{ matrix.target }}_${{ steps.date.outputs.date }}_SUSFS-LOG | |
| path: "*.log" | |
| if-no-files-found: warn |