action.yml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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* || ${{ 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. fi
  37. - name: start make build
  38. if: inputs.build_type == 'make'
  39. shell: bash
  40. run: |
  41. set -e
  42. set -x
  43. cd "$CONFIG"
  44. if [[ -f build_kernel_GKI.sh ]]; then
  45. chmod +x build_kernel_GKI.sh
  46. ./build_kernel_GKI.sh || true
  47. elif [[ -f build_kernel.sh ]]; then
  48. sudo apt update
  49. sudo apt-get install -y libyaml-dev
  50. chmod +x build_kernel.sh
  51. ./build_kernel.sh || true
  52. fi
  53. #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
  54. #cd kernel_platform
  55. #tools/bazel build //common:kernel_aarch64
  56. #chmod +x build_kernel_GKI.sh
  57. #./build_kernel_GKI.sh || true
  58. #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
  59. #cd kernel_platform
  60. #tools/bazel build //common:kernel_aarch64
  61. #chmod +x build_kernel_GKI.sh
  62. #./build_kernel_GKI.sh || true
  63. #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
  64. #sudo apt update
  65. #sudo apt-get install -y libyaml-dev
  66. #chmod +x build_kernel.sh
  67. #./build_kernel.sh || true
  68. #elif [[ "${{ inputs.branch }}" == "SM-A566B" ]]; then
  69. #chmod +x build_script.sh
  70. #touch ./kernel-6.6/abi_symbollist.raw
  71. #touch ./kernel-6.6/abi_symbollist
  72. #./build_script.sh || true
  73. #elif [[ "${{ inputs.branch }}" == "SM-A075M-Oneui7" ]]; then
  74. #chmod +x build_kernel.sh
  75. #./build_kernel.sh
  76. #fi