action.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. runs:
  8. using: composite
  9. steps:
  10. - name: start kernel build
  11. shell: bash
  12. run: |
  13. set -e
  14. set -x
  15. cd "$CONFIG"
  16. echo "Building the kernel..."
  17. if [[ ${{ inputs.branch }} == SM-S928B* || "${{ inputs.branch }}" == "SM-S938B-Oneui7" || "${{ inputs.branch }}" == "SM-S931B-Oneui8" || "${{ inputs.branch }}" == "SM-F741B-Oneui8" ]]; then
  18. chmod +x build_kernel_GKI.sh
  19. ./build_kernel_GKI.sh || true
  20. 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-Oneui8-bit8" || "${{ inputs.branch }}" == "SM-M556B-Oneui8" ]]; then
  21. chmod +x build_kernel_GKI.sh
  22. #LTO=thin ./build_kernel_GKI.sh || true
  23. ./build_kernel_GKI.sh || true
  24. elif [[ ${{ inputs.branch }} == SM-A546* || "${{ inputs.branch }}" == "SM-M146B-Oneui7-ADYJ2" || "${{ inputs.branch }}" == "SM-S908B-Oneui8-bitK" ]]; then
  25. sudo apt update
  26. sudo apt-get install -y libyaml-dev
  27. chmod +x build_kernel.sh
  28. #LTO=thin ./build_kernel.sh || true
  29. ./build_kernel.sh || true
  30. elif [[ "${{ inputs.branch }}" == "SM-A566B" ]]; then
  31. chmod +x build_script.sh
  32. touch ./kernel-6.6/abi_symbollist.raw
  33. touch ./kernel-6.6/abi_symbollist
  34. ./build_script.sh || true
  35. elif [[ "${{ inputs.branch }}" == "SM-S926B-Oneui8" ]]; then
  36. tools/bazel run --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e9945:s5e9945_user_dist
  37. elif [[ ${{ inputs.branch }} == SM-A556* ]]; then
  38. tools/bazel run --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e8845:s5e8845_user_dist
  39. elif [[ ${{ inputs.branch }} == SM-A055* ]]; then
  40. chmod +x build_kernel.sh
  41. ./build_kernel.sh
  42. fi