action.yml 2.4 KB

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