action.yml 1008 B

12345678910111213141516171819202122232425262728293031
  1. name: 'Prepare AnyKernel3'
  2. description: 'Copies built Image into AnyKernel3 folder'
  3. inputs:
  4. android_version:
  5. description: 'Android version (e.g., android13)'
  6. required: true
  7. kernel_version:
  8. description: 'Kernel version (e.g., 5.15)'
  9. required: true
  10. runs:
  11. using: composite
  12. steps:
  13. - shell: bash
  14. run: |
  15. set -euo pipefail
  16. ANDROID_VERSION="${{ inputs.android_version }}"
  17. KERNEL_VERSION="${{ inputs.kernel_version }}"
  18. if [ -f "${{ github.workspace }}/kernel/out/$ANDROID_VERSION-$KERNEL_VERSION/dist/Image" ]; then
  19. cp "${{ github.workspace }}/kernel/out/$ANDROID_VERSION-$KERNEL_VERSION/dist/Image" "${{ github.workspace }}/AnyKernel3/Image"
  20. exit 0
  21. fi
  22. if [ -f "${{ github.workspace }}/kernel/bazel-bin/common/kernel_aarch64/Image" ]; then
  23. cp "${{ github.workspace }}/kernel/bazel-bin/common/kernel_aarch64/Image" "${{ github.workspace }}/AnyKernel3/Image"
  24. exit 0
  25. fi
  26. exit 1