| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- name: 'Setup SUSFS'
- description: 'Clone and apply SUSFS patches with version-specific fixes'
- inputs:
- susfs_commit:
- description: 'SUSFS commit hash (empty = latest on auto-derived gki-{version} branch)'
- required: false
- default: ""
- version:
- description: 'Kernel config version (e.g., android15-6.6)'
- required: true
- android_version:
- description: 'Android version (e.g., android15)'
- required: true
- kernel_version:
- description: 'Kernel version (e.g., 6.6)'
- required: true
- os_patch_level:
- description: 'OS patch level (e.g., 2024-07)'
- required: true
- sublevel:
- description: 'Kernel sublevel'
- required: true
- root_flavor:
- description: 'Selected root implementation (kernelsu / next / resukisu / sukisu-ultra). KernelSU (tiann main) needs the 10_enable_susfs_for_ksu patch; other flavors already ship SUSFS.'
- required: false
- default: ""
- runs:
- using: "composite"
- steps:
- - name: Setup SUSFS Branch
- uses: ./.github/actions/susfs-setup
- with:
- susfs_commit: ${{ inputs.susfs_commit }}
- version: ${{ inputs.version }}
- root_flavor: ${{ inputs.root_flavor }}
- - name: Enable SUSFS for KernelSU (tiann)
- # tiann/KernelSU main does NOT carry SUSFS, so for the kernelsu flavor we
- # apply the enable patch from susfs4ksu onto the KernelSU checkout.
- # pershoot dev-susfs (next) and ReSukiSU already include SUSFS, so this is
- # a no-op for those flavors.
- if: inputs.root_flavor == 'kernelsu'
- shell: bash
- working-directory: ${{ github.workspace }}/kernel/KernelSU
- run: |
- set -euo pipefail
- PATCH="${{ github.workspace }}/susfs4ksu/kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch"
- if [ ! -f "$PATCH" ]; then
- echo "Missing 10_enable_susfs_for_ksu.patch at $PATCH" >&2
- exit 1
- fi
- echo "Applying SUSFS enable patch to KernelSU (tiann) checkout (kernel/KernelSU/kernel)"
- patch -p1 < "$PATCH"
- - name: Enable SUSFS Kernel Configs
- uses: ./.github/actions/susfs-config
- - name: Apply SUSFS Patches
- uses: ./.github/actions/susfs-patches
- with:
- version: ${{ inputs.version }}
- sublevel: ${{ inputs.sublevel }}
- os_patch_level: ${{ inputs.os_patch_level }}
- - name: Revert SUSFS Fake Patches
- uses: ./.github/actions/susfs-revert-patches
- with:
- version: ${{ inputs.version }}
- sublevel: ${{ inputs.sublevel }}
- os_patch_level: ${{ inputs.os_patch_level }}
|