action.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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" || "${{ inputs.branch }}" == "SM-X710-Oneui6.1.1" ]]; 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* || "${{ inputs.branch }}" == "SM-M556B-Oneui8" ]]; then
  21. chmod +x build_kernel_GKI.sh
  22. ./build_kernel_GKI.sh || true
  23. 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
  24. #sudo apt update
  25. #sudo apt-get install -y libyaml-dev
  26. chmod +x build_kernel.sh
  27. ./build_kernel.sh || true
  28. elif [[ "${{ inputs.branch }}" == "SM-A566B" ]]; then
  29. chmod +x build_script.sh
  30. touch ./kernel-6.6/abi_symbollist.raw
  31. touch ./kernel-6.6/abi_symbollist
  32. ./build_script.sh || true
  33. elif [[ ${{ inputs.branch }} == SM-S926B* ]]; then
  34. tools/bazel run --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e9945:s5e9945_user_dist
  35. elif [[ ${{ inputs.branch }} == SM-A556* ]]; then
  36. tools/bazel run --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e8845:s5e8845_user_dist
  37. elif [[ ${{ inputs.branch }} == SM-A055* || "${{ inputs.branch }}" == "SM-A075M-Oneui7" ]]; then
  38. chmod +x build_kernel.sh
  39. ./build_kernel.sh
  40. fi