action.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: prepare ak3
  2. description: copy kernel image to ak3 folder
  3. inputs:
  4. branch:
  5. description: 'device kernel/repo'
  6. required: true
  7. runs:
  8. using: composite
  9. steps:
  10. - name: copy image to ak3 folder depending on branch
  11. shell: bash
  12. run: |
  13. cd "$CONFIG"
  14. if [[ "${{ inputs.branch }}" == "SM-S928B-Oneui7" || "${{ inputs.branch }}" == "SM-S928B-Oneui8-bit4" || "${{ inputs.branch }}" == "SM-S928B-Oneui8-bit5" || "${{ inputs.branch }}" == "SM-F741B-Oneui8" ]]; then
  15. cp ./kernel_platform/sec/dist/Image "$ANYKERNEL3/Image"
  16. elif [[ "${{ inputs.branch }}" == "SM-S928B-Oneui6.1" ]]; then
  17. cp ./out/msm-pineapple-pineapple-gki/dist/Image "$ANYKERNEL3/Image"
  18. elif [[ "${{ inputs.branch }}" == "SM-S938B-Oneui7" || "${{ inputs.branch }}" == "SM-S931B-Oneui8" || "${{ inputs.branch }}" == "SM-M556B-Oneui8" ]]; then
  19. cp ./kernel_platform/gki/dist/Image "$ANYKERNEL3/Image"
  20. elif [[ -f ./$CONFIG/bazel-bin/common/kernel_aarch64/Image ]]; then
  21. cp ./$CONFIG/bazel-bin/common/kernel_aarch64/Image "$ANYKERNEL3/Image"
  22. elif [[ "${{ inputs.branch }}" == "SM-X916B" || "${{ inputs.branch }}" == "SM-F946N-Oneui7" || "${{ inputs.branch }}" == "SM-F946B-Oneui8" || "${{ inputs.branch }}" == "SM-S916B-Oneui8" || "${{ inputs.branch }}" == "SM-S918B-Oneui8" || "${{ inputs.branch }}" == "SM-S911B-Oneui8-bit8" ]]; then
  23. cp ./out/msm-kalama-kalama-gki/dist/Image "$ANYKERNEL3/Image"
  24. elif [[ ${{ inputs.branch }} == SM-A546* || "${{ inputs.branch }}" == "SM-M146B-Oneui7-ADYJ2" || "${{ inputs.branch }}" == "SM-S908B-Oneui8-bitK" ]]; then
  25. cp ./arch/arm64/boot/Image "$ANYKERNEL3/Image"
  26. elif [[ "${{ inputs.branch }}" == "SM-A566B" ]]; then
  27. cp ./kernel-6.6/out/arch/arm64/boot/Image "$ANYKERNEL3/Image"
  28. elif [[ "${{ inputs.branch }}" == "SM-S926B-Oneui8" ]]; then
  29. cp ./out/s5e9945_user/dist/Image "$ANYKERNEL3/Image"
  30. elif [[ ${{ inputs.branch }} == SM-A556* ]]; then
  31. cp ./out/s5e8845_user/dist/Image "$ANYKERNEL3/Image"
  32. elif [[ "${{ inputs.branch }}" == "SM-S901E-Oneui8" || "${{ inputs.branch }}" == "SM-X800-Oneui8" ]]; then
  33. cp ./out/msm-waipio-waipio-gki/dist/Image "$ANYKERNEL3/Image"
  34. elif [[ ${{ inputs.branch }} == SM-A055* ]]; then
  35. cp ./out/target/product/a05m/obj/KLEAF_OBJ/dist/kernel_device_modules-6.6/mgk_64_k66_kernel_aarch64.user/Image.gz "$ANYKERNEL3/Image.gz"
  36. else
  37. echo "Error: Image file not found in any expected location"
  38. exit 1
  39. fi