action.yml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: Setup Droidspaces-OSS
  2. description: Clone and apply Droidspaces-OSS patches with version-specific fixes
  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. os_patch_level:
  11. description: 'OS patch level (e.g., 2024-07)'
  12. required: true
  13. sublevel:
  14. description: 'Kernel sublevel'
  15. required: true
  16. runs:
  17. using: composite
  18. steps:
  19. - name: Download and Apply Droidspaces-OSS Patches
  20. shell: bash
  21. working-directory: ${{ github.workspace }}
  22. run: |
  23. git clone --depth=1 https://github.com/ravindu644/Droidspaces-OSS.git
  24. - name: Apply the SYSVIPC kABI fix
  25. shell: bash
  26. working-directory: ${{ github.workspace }}/kernel/common
  27. run: |
  28. if [ "${{ inputs.kernel_version }}" == "6.12" ]; then
  29. cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/kernel-6.12/001.GKI-6.12-or-above-fix_sysvipc_kabi.patch ./
  30. patch -p1 < 001.GKI-6.12-or-above-fix_sysvipc_kabi.patch
  31. elif [ "${{ inputs.kernel_version }}" == "6.6" ] || [ "${{ inputs.kernel_version }}" == "6.1" ]; then
  32. #curl -L https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_1_2_3.patch
  33. #curl -L https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_3_4_5.patch
  34. cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch ./
  35. patch -p1 < 001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch
  36. elif [ "${{ inputs.kernel_version }}" == "5.15" ]; then
  37. cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch ./
  38. patch -p1 < 001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch
  39. elif [ "${{ inputs.kernel_version }}" == "5.10" ]; then
  40. cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch ./
  41. patch -p1 < 001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch
  42. cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/002.5.10_or_lower_use_android_abi_padding_for_posix_mqueue.patch ./
  43. patch -p1 < 002.5.10_or_lower_use_android_abi_padding_for_posix_mqueue.patch
  44. fi
  45. - name: Enable Configs
  46. shell: bash
  47. working-directory: ${{ github.workspace }}/kernel
  48. run: |
  49. cat >> "${{ github.workspace }}/wild_gki.fragment" << 'EOF'
  50. CONFIG_SYSVIPC=y
  51. CONFIG_POSIX_MQUEUE=y
  52. CONFIG_IPC_NS=y
  53. CONFIG_PID_NS=y
  54. CONFIG_DEVTMPFS=y
  55. EOF