| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- name: set variables
- description: set environment variables
- inputs:
- susfs:
- description: 'susfs'
- required: true
- branch:
- description: 'device kernel'
- required: true
- zeromount:
- description: 'zeromount'
- required: true
- nomount:
- description: 'nomount'
- required: true
- runs:
- using: composite
- steps:
- - name: set dependency directory variables
- shell: bash
- run: |
- ROOT="$GITHUB_WORKSPACE"
- ANYKERNEL3="$ROOT/AnyKernel3"
- KERNEL_PATCHES="$ROOT/kernel_patches"
- echo "ROOT=$ROOT" >> $GITHUB_ENV
- echo "ANYKERNEL3=$ANYKERNEL3" >> $GITHUB_ENV
- echo "KERNEL_PATCHES=$KERNEL_PATCHES" >> $GITHUB_ENV
-
- - name: set common variable
- shell: bash
- run: |
- 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
- COMMON="$CONFIG"
- elif [[ "${{ inputs.branch }}" == "SM-A566B" || ${{ inputs.branch }} == SM-A055* ]]; then
- COMMON="$CONFIG/kernel-6.6"
- elif [[ ${{ inputs.branch }} == SM-S926B* || ${{ inputs.branch }} == SM-A556* ]]; then
- COMMON="$CONFIG/kernel"
- elif [[ "${{ inputs.branch }}" == "SM-A075M-Oneui7" ]]; then
- COMMON="$CONFIG/kernel-5.10"
- elif [[ "${{ inputs.branch }}" == "SM-X926B-Oneui6.1" ]]; then
- COMMON="$CONFIG/kernel-6.1"
- else
- COMMON="$CONFIG/kernel_platform/common"
- fi
- echo "COMMON=$COMMON" >> $GITHUB_ENV
-
- - name: set defconfig variable
- shell: bash
- run: |
- if [[ ${{ inputs.branch }} == SM-A546B* ]]; then
- GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e8835-a54xnaxx_defconfig"
- elif [[ ${{ inputs.branch }} == SM-A546E* ]]; then
- GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e8835-a54xnsxx_defconfig"
- elif [[ "${{ inputs.branch }}" == "SM-M146B-Oneui7-ADYJ2" ]]; then
- GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e8535-m14xnsxx_defconfig"
- elif [[ "${{ inputs.branch }}" == "SM-S908B-Oneui8-bitK" ]]; then
- GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e9925-b0sxxx_defconfig"
- elif [[ "${{ inputs.branch }}" == "SM-X610-Oneui6.1.1-bit7" ]]; then
- GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e8835-gts9fepwifixx_defconfig"
- elif [[ "${{ inputs.branch }}" == "SM-A166B-Oneui7" ]]; then
- GKI_DEFCONFIG="$COMMON/arch/arm64/configs/s5e8535-a16xxx_defconfig"
- else
- GKI_DEFCONFIG="$COMMON/arch/arm64/configs/gki_defconfig"
- fi
- echo "GKI_DEFCONFIG=$GKI_DEFCONFIG" >> $GITHUB_ENV
|