action.yml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. name: build kernel
  2. description: each samsung kernel has its own way of building the kernel, they are sorted here.
  3. inputs:
  4. branch:
  5. description: 'device kernel'
  6. required: true
  7. ccache:
  8. description: 'build with ccache'
  9. required: true
  10. build_type:
  11. description: 'make or bazel'
  12. required: true
  13. runs:
  14. using: composite
  15. steps:
  16. - name: start bazel build
  17. if: inputs.build_type == 'Bazel'
  18. shell: bash
  19. run: |
  20. set -e
  21. set -x
  22. cd "$CONFIG"
  23. echo "Building the kernel..."
  24. if [[ -d kernel_platform ]]; then
  25. cd kernel_platform
  26. tools/bazel build //common:kernel_aarch64
  27. elif [[ ${{ inputs.branch }} == SM-A055* ]]; then
  28. chmod +x build_kernel.sh
  29. ./build_kernel.sh || true
  30. elif [[ ${{ inputs.branch }} == SM-S926* ]]; then
  31. #tools/bazel run --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e9945:s5e9945_user_dist
  32. cd kernel
  33. SYMBOL_LIST=android/abi_gki_aarch64_galaxy
  34. echo "find_in_flight_task_in_one_workqueue" >> $SYMBOL_LIST
  35. sed -i '
  36. /"kernel_aarch64": {/,/},/ {
  37. s/"kmi_symbol_list_strict_mode": True/"kmi_symbol_list_strict_mode": False/
  38. s/"trim_nonlisted_kmi": True/"trim_nonlisted_kmi": False/
  39. }
  40. cd ..
  41. tools/bazel build //kernel:kernel_aarch64
  42. elif [[ ${{ inputs.branch }} == SM-A556* ]]; then
  43. #tools/bazel run --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e8845:s5e8845_user_dist
  44. cd kernel
  45. SYMBOL_LIST=android/abi_gki_aarch64_galaxy
  46. echo "find_in_flight_task_in_one_workqueue" >> $SYMBOL_LIST
  47. sed -i '
  48. /"kernel_aarch64": {/,/},/ {
  49. s/"kmi_symbol_list_strict_mode": True/"kmi_symbol_list_strict_mode": False/
  50. s/"trim_nonlisted_kmi": True/"trim_nonlisted_kmi": False/
  51. }
  52. cd ..
  53. tools/bazel build //kernel:kernel_aarch64
  54. fi
  55. - name: start make build
  56. if: inputs.build_type == 'make'
  57. shell: bash
  58. run: |
  59. set -e
  60. set -x
  61. cd "$CONFIG"
  62. if [[ -f build_kernel_GKI.sh ]]; then
  63. chmod +x build_kernel_GKI.sh
  64. ./build_kernel_GKI.sh || true
  65. elif [[ -f build_kernel.sh ]]; then
  66. sudo apt update
  67. sudo apt-get install -y libyaml-dev
  68. chmod +x build_kernel.sh
  69. ./build_kernel.sh || true
  70. fi
  71. #if [[ ${{ inputs.branch }} == SM-S928B* || "${{ inputs.branch }}" == "SM-S938B-Oneui7" || "${{ inputs.branch }}" == "SM-S931B-Oneui8" || "${{ inputs.branch }}" == "SM-F741B-Oneui8" || "${{ inputs.branch }}" == "SM-X710-Oneui6.1.1" ]]; then
  72. #cd kernel_platform
  73. #tools/bazel build //common:kernel_aarch64
  74. #chmod +x build_kernel_GKI.sh
  75. #./build_kernel_GKI.sh || true
  76. #elif [[ "${{ inputs.branch }}" == "SM-X916B" || "${{ inputs.branch }}" == "SM-F946N-Oneui7" || "${{ inputs.branch }}" == "SM-S916B-Oneui8" || "${{ inputs.branch }}" == "SM-S918B-Oneui8" || "${{ inputs.branch }}" == "SM-F946B-Oneui8" || "${{ inputs.branch }}" == "SM-S901E-Oneui8" || "${{ inputs.branch }}" == "SM-X800-Oneui8" || ${{ inputs.branch }} == SM-S911B* || "${{ inputs.branch }}" == "SM-M556B-Oneui8" ]]; then
  77. #cd kernel_platform
  78. #tools/bazel build //common:kernel_aarch64
  79. #chmod +x build_kernel_GKI.sh
  80. #./build_kernel_GKI.sh || true
  81. #elif [[ ${{ inputs.branch }} == SM-A546* || "${{ inputs.branch }}" == "SM-M146B-Oneui7-ADYJ2" || "${{ inputs.branch }}" == "SM-S908B-Oneui8-bitK" || ${{ inputs.branch }} == SM-A055* || "${{ inputs.branch }}" == "SM-X610-Oneui6.1.1-bit7" || "${{ inputs.branch }}" == "SM-A166B-Oneui7" ]]; then
  82. #sudo apt update
  83. #sudo apt-get install -y libyaml-dev
  84. #chmod +x build_kernel.sh
  85. #./build_kernel.sh || true
  86. #elif [[ "${{ inputs.branch }}" == "SM-A566B" ]]; then
  87. #chmod +x build_script.sh
  88. #touch ./kernel-6.6/abi_symbollist.raw
  89. #touch ./kernel-6.6/abi_symbollist
  90. #./build_script.sh || true
  91. #elif [[ "${{ inputs.branch }}" == "SM-A075M-Oneui7" ]]; then
  92. #chmod +x build_kernel.sh
  93. #./build_kernel.sh
  94. #fi