action.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: 'Setup SUSFS Branch'
  2. description: 'Clone SUSFS repo and cherry-pick commits'
  3. inputs:
  4. susfs_commit:
  5. description: 'SUSFS commit hash (empty = latest on auto-derived gki-{version} branch)'
  6. required: false
  7. default: ""
  8. version:
  9. description: 'Kernel config version (e.g., android15-6.6)'
  10. required: true
  11. runs:
  12. using: "composite"
  13. steps:
  14. - name: Clone SUSFS Branch
  15. shell: bash
  16. run: |
  17. set -euo pipefail
  18. SUSFS_BRANCH="gki-${{ inputs.version }}"
  19. SUSFS_REPO="https://gitlab.com/simonpunk/susfs4ksu.git"
  20. echo "Preparing SUSFS for branch: $SUSFS_BRANCH"
  21. echo "Cloning latest from $SUSFS_BRANCH..."
  22. git clone "$SUSFS_REPO" -b "$SUSFS_BRANCH" susfs4ksu
  23. if [ -n "${{ inputs.susfs_commit }}" ]; then
  24. echo "Checking out SUSFS commit: ${{ inputs.susfs_commit }}"
  25. cd ${{ github.workspace }}/susfs4ksu
  26. git checkout "${{ inputs.susfs_commit }}"
  27. fi
  28. cd susfs4ksu
  29. patch -p1 < "${{ github.workspace }}/kernel_patches/pershoot/susfs4ksu/0001-pershoot-Allow-core-to-be-built-with-no-features.patch"
  30. patch -p1 < "${{ github.workspace }}/kernel_patches/pershoot/susfs4ksu/0002-pershoot-Implement-SuSFS-and-Toolkit-coexistence.patch"