root-variants.yml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. name: Build-verified only GKI root variants
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. kernel_build_version:
  6. description: "Supported GKI target"
  7. required: true
  8. type: choice
  9. options:
  10. - android12-5.10
  11. - android13-5.10
  12. - android13-5.15
  13. - android14-5.15
  14. - android14-6.1
  15. - android15-6.6
  16. - android16-6.12
  17. default: android14-6.1
  18. os_patch_level:
  19. description: "Patch date (YYYY-MM), kernel sublevel, latest, or all"
  20. required: true
  21. type: string
  22. default: latest
  23. permissions:
  24. contents: read
  25. actions: write
  26. jobs:
  27. resolve-pins:
  28. runs-on: ubuntu-latest
  29. outputs:
  30. config_file: ${{ steps.pins.outputs.config_file }}
  31. susfs_commit: ${{ steps.pins.outputs.susfs_commit }}
  32. steps:
  33. - id: pins
  34. shell: bash
  35. run: |
  36. set -euo pipefail
  37. case "${{ inputs.kernel_build_version }}" in
  38. android12-5.10) susfs_commit="3c14ad549f826b1f53878ec8c12253efebeed75a" ;;
  39. android13-5.10) susfs_commit="f81aaf10e9560282052bb61dd931315c2ca3e617" ;;
  40. android13-5.15) susfs_commit="ccb1918684b27644d17a6c842f57b60ae5966025" ;;
  41. android14-5.15) susfs_commit="0463ac089308014e8c22cc6a4558e0d6d2a53e08" ;;
  42. android14-6.1) susfs_commit="e287d59066380bf6de4396532d4a42edf4408701" ;;
  43. android15-6.6) susfs_commit="be7b7ef49a1e1b189c3abf00eacaa7ebdb4168c1" ;;
  44. android16-6.12) susfs_commit="f37930f374ef88de990d6abea0c67d0ea28c1edc" ;;
  45. *) echo "Unsupported GKI target." >&2; exit 2 ;;
  46. esac
  47. echo "config_file=.github/config/${{ inputs.kernel_build_version }}.json" >> "$GITHUB_OUTPUT"
  48. echo "susfs_commit=$susfs_commit" >> "$GITHUB_OUTPUT"
  49. build:
  50. needs: resolve-pins
  51. strategy:
  52. fail-fast: false
  53. matrix:
  54. include:
  55. - flavor: classic
  56. commit: da9abf498a77d438989fea0f5f4e348b9a540c07
  57. variant: Classic-KernelSU
  58. - flavor: next
  59. commit: 234f6e040fcbca18b16d2398e1aa225712ec99ad
  60. variant: KernelSU-Next
  61. - flavor: resukisu
  62. commit: 3ef06b0fcb0960dc9563256fe26a58e892663387
  63. variant: ReSukiSU
  64. uses: ./.github/workflows/prepare.yml
  65. with:
  66. config_file: ${{ needs.resolve-pins.outputs.config_file }}
  67. feature_set: SUSFS
  68. susfs_commit: ${{ needs.resolve-pins.outputs.susfs_commit }}
  69. root_flavor: ${{ matrix.flavor }}
  70. root_commit: ${{ matrix.commit }}
  71. nomount_commit: c52936b229c25a4b0e41b6627f7d3bc5eaaaf2b5
  72. preserve_abi: true
  73. build_bypass: false
  74. os_patch_level: ${{ inputs.os_patch_level }}
  75. variant: ${{ matrix.variant }}
  76. secrets: inherit