action.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. name: set variables
  2. description: set environment variables
  3. inputs:
  4. susfs:
  5. description: 'susfs'
  6. required: true
  7. branch:
  8. description: 'device kernel'
  9. required: true
  10. zeromount:
  11. description: 'zeromount'
  12. required: true
  13. nomount:
  14. description: 'nomount'
  15. required: true
  16. runs:
  17. using: composite
  18. steps:
  19. - name: set dependency directory variables
  20. shell: bash
  21. run: |
  22. ROOT="$GITHUB_WORKSPACE"
  23. ANYKERNEL3="$ROOT/AnyKernel3"
  24. KERNEL_PATCHES="$ROOT/kernel_patches"
  25. echo "ROOT=$ROOT" >> $GITHUB_ENV
  26. echo "ANYKERNEL3=$ANYKERNEL3" >> $GITHUB_ENV
  27. echo "KERNEL_PATCHES=$KERNEL_PATCHES" >> $GITHUB_ENV
  28. - name: set common variable
  29. shell: bash
  30. run: |
  31. if [[ ${{ inputs.branch }} == SM-A546* || "${{ inputs.branch }}" == "SM-M146B-Oneui7-ADYJ2" || "${{ inputs.branch }}" == "SM-S908B-Oneui8-bitK" || "${{ inputs.branch }}" == "SM-X610-Oneui6.1.1-bit7" || "${{ inputs.branch }}" == "SM-A166B-Oneui7" ]]; then
  32. COMMON="$CONFIG"
  33. elif [[ "${{ inputs.branch }}" == "SM-A566B" || ${{ inputs.branch }} == SM-A055* ]]; then
  34. COMMON="$CONFIG/kernel-6.6"
  35. elif [[ ${{ inputs.branch }} == SM-S926B* || ${{ inputs.branch }} == SM-A556* ]]; then
  36. COMMON="$CONFIG/kernel"
  37. elif [[ "${{ inputs.branch }}" == "SM-A075M-Oneui7" ]]; then
  38. COMMON="$CONFIG/kernel-5.10"
  39. elif [[ "${{ inputs.branch }}" == "SM-X926B-Oneui6.1" ]]; then
  40. COMMON="$CONFIG/kernel-6.1"
  41. else
  42. COMMON="$CONFIG/kernel_platform/common"
  43. fi
  44. echo "COMMON=$COMMON" >> $GITHUB_ENV
  45. - name: set defconfig variable
  46. shell: bash
  47. run: |
  48. if [[ ${{ inputs.branch }} == SM-A546B* ]]; then
  49. GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e8835-a54xnaxx_defconfig"
  50. elif [[ ${{ inputs.branch }} == SM-A546E* ]]; then
  51. GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e8835-a54xnsxx_defconfig"
  52. elif [[ "${{ inputs.branch }}" == "SM-M146B-Oneui7-ADYJ2" ]]; then
  53. GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e8535-m14xnsxx_defconfig"
  54. elif [[ "${{ inputs.branch }}" == "SM-S908B-Oneui8-bitK" ]]; then
  55. GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e9925-b0sxxx_defconfig"
  56. elif [[ "${{ inputs.branch }}" == "SM-X610-Oneui6.1.1-bit7" ]]; then
  57. GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e8835-gts9fepwifixx_defconfig"
  58. elif [[ "${{ inputs.branch }}" == "SM-A166B-Oneui7" ]]; then
  59. GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e8535-a16xxx_defconfig"
  60. else
  61. GKI_DEFCONFIG="$COMMON/arch/arm64/configs/gki_defconfig"
  62. fi
  63. echo "GKI_DEFCONFIG=$GKI_DEFCONFIG" >> $GITHUB_ENV