action.yml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. kernel_version:
  14. description: 'version of kernel'
  15. required: true
  16. runs:
  17. using: composite
  18. steps:
  19. - name: start bazel build
  20. if: inputs.build_type == 'Bazel'
  21. shell: bash
  22. run: |
  23. set -e
  24. set -x
  25. cd "$CONFIG"
  26. echo "Building the kernel..."
  27. if [[ ${{ inputs.branch }} == SM-A055* || ${{ inputs.branch }} == SM-X926B* ]]; 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. tools/bazel build --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e9945:s5e9945_user
  33. elif [[ ${{ inputs.branch }} == SM-A556* ]]; then
  34. #tools/bazel run --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e8845:s5e8845_user_dist
  35. tools/bazel build --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e8845:s5e8845_user
  36. elif [[ ${{ inputs.kernel_verion }} == 6.* ]]; then
  37. chmod +x build_kernel_GKI.sh
  38. ./build_kernel_GKI.sh || true
  39. elif [[ -d kernel_platform ]]; then
  40. cd kernel_platform
  41. tools/bazel build //common:kernel_aarch64
  42. fi
  43. - name: start make build
  44. if: inputs.build_type == 'make'
  45. shell: bash
  46. run: |
  47. set -e
  48. set -x
  49. cd "$CONFIG"
  50. if [[ -f build_kernel_GKI.sh ]]; then
  51. chmod +x build_kernel_GKI.sh
  52. ./build_kernel_GKI.sh || true
  53. elif [[ -f build_kernel.sh ]]; then
  54. sudo apt update
  55. sudo apt-get install -y libyaml-dev
  56. chmod +x build_kernel.sh
  57. ./build_kernel.sh || true
  58. fi
  59. #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
  60. #cd kernel_platform
  61. #tools/bazel build //common:kernel_aarch64
  62. #chmod +x build_kernel_GKI.sh
  63. #./build_kernel_GKI.sh || true
  64. #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
  65. #cd kernel_platform
  66. #tools/bazel build //common:kernel_aarch64
  67. #chmod +x build_kernel_GKI.sh
  68. #./build_kernel_GKI.sh || true
  69. #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
  70. #sudo apt update
  71. #sudo apt-get install -y libyaml-dev
  72. #chmod +x build_kernel.sh
  73. #./build_kernel.sh || true
  74. #elif [[ "${{ inputs.branch }}" == "SM-A566B" ]]; then
  75. #chmod +x build_script.sh
  76. #touch ./kernel-6.6/abi_symbollist.raw
  77. #touch ./kernel-6.6/abi_symbollist
  78. #./build_script.sh || true
  79. #elif [[ "${{ inputs.branch }}" == "SM-A075M-Oneui7" ]]; then
  80. #chmod +x build_kernel.sh
  81. #./build_kernel.sh
  82. #fi