action.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: clone dependencies
  2. description: dependencies
  3. inputs:
  4. android_version:
  5. description: 'Android version (e.g., android15)'
  6. required: true
  7. kernel_version:
  8. description: 'Kernel version (e.g., 6.6)'
  9. required: true
  10. zeromount:
  11. description: 'zeromount'
  12. required: true
  13. susfs:
  14. description: 'SUSFS'
  15. required: true
  16. runs:
  17. using: composite
  18. steps:
  19. - name: clone susfs and change commit if necessary, and clone kernel patches
  20. shell: bash
  21. run: |
  22. ANYKERNEL_BRANCH="gki-2.0"
  23. git config --global user.name "github-actions[bot]"
  24. git config --global user.email "41898282+github-actions[bot]@://github.com"
  25. git clone https://github.com/WildKernels/kernel_patches.git
  26. git clone https://github.com/WildKernels/AnyKernel3.git -b "$ANYKERNEL_BRANCH"
  27. if [[ ${{ inputs.zeromount }} == 'true' ]]; then
  28. git clone https://github.com/jimsterino98/Super-Builders.git
  29. fi
  30. if [[ ${{ inputs.susfs }} == 'true' ]]; then
  31. SUSFS_BRANCH="gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}"
  32. git clone https://gitlab.com/simonpunk/susfs4ksu.git -b "$SUSFS_BRANCH"
  33. cd susfs4ksu
  34. git fetch https://gitlab.com/pershoot/susfs4ksu.git gki-android14-6.1-dev
  35. git log ..FETCH_HEAD --oneline -n 2 | awk '{print $1}' | tac | xargs git cherry-pick
  36. #cd susfs4ksu
  37. #if [[ "${{ inputs.android_version }}-${{ inputs.kernel_version }}" == "android12-5.10" ]]; then
  38. #COMMIT=ce2c2b2dea28c89d33f61af898cc18a93bf65ae9
  39. #elif [[ "${{ inputs.android_version }}-${{ inputs.kernel_version }}" == "android13-5.15" ]]; then
  40. # COMMIT=529919fbc9f8aee6ee70eb3a8890ef33af0a109c
  41. #elif [[ "${{ inputs.android_version }}-${{ inputs.kernel_version }}" == "android14-6.1" ]]; then
  42. #COMMIT=d1327b62e0854603cfc26e2226e0a993ec9b0656
  43. #elif [[ "${{ inputs.android_version }}-${{ inputs.kernel_version }}" == "android15-6.6" ]]; then
  44. #COMMIT=676d202ed2cc322a2f90bcb2b56bc4f6a864acb8
  45. #fi
  46. #git checkout "$COMMIT"
  47. fi