| 12345678910111213141516171819202122232425262728293031 |
- name: 'Prepare AnyKernel3'
- description: 'Copies built Image into AnyKernel3 folder'
- inputs:
- android_version:
- description: 'Android version (e.g., android13)'
- required: true
- kernel_version:
- description: 'Kernel version (e.g., 5.15)'
- required: true
- runs:
- using: composite
- steps:
- - shell: bash
- run: |
- set -euo pipefail
- ANDROID_VERSION="${{ inputs.android_version }}"
- KERNEL_VERSION="${{ inputs.kernel_version }}"
- if [ -f "${{ github.workspace }}/kernel/out/$ANDROID_VERSION-$KERNEL_VERSION/dist/Image" ]; then
- cp "${{ github.workspace }}/kernel/out/$ANDROID_VERSION-$KERNEL_VERSION/dist/Image" "${{ github.workspace }}/AnyKernel3/Image"
- exit 0
- fi
- if [ -f "${{ github.workspace }}/kernel/bazel-bin/common/kernel_aarch64/Image" ]; then
- cp "${{ github.workspace }}/kernel/bazel-bin/common/kernel_aarch64/Image" "${{ github.workspace }}/AnyKernel3/Image"
- exit 0
- fi
- exit 1
|