action.yml 2.2 KB

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