Просмотр исходного кода

ci(build): update version suffix and filename logic for TheWildJames build

Add special case handling for TheWildJames build type to use a custom version suffix and include it in the artifact filename. This ensures proper version identification for different build types.
TheWildJames 9 месяцев назад
Родитель
Сommit
733139cdcb
1 измененных файлов с 9 добавлено и 2 удалено
  1. 9 2
      .github/workflows/build.yml

+ 9 - 2
.github/workflows/build.yml

@@ -588,7 +588,14 @@ jobs:
         run: |
           cd "$KERNEL_ROOT"
           #Wild to Kernel Version
-          sed -i '$s|echo "\$res"|echo "\$res-Wild"|' ./common/scripts/setlocalversion
+          case ${{ matrix.build_type }} in
+            TheWildJames)
+              sed -i '$s|echo "\$res"|echo "\$res-🟢-Wild-✅-Exclusive"|' ./common/scripts/setlocalversion
+              ;;
+            *)
+              sed -i '$s|echo "\$res"|echo "\$res-Wild"|' ./common/scripts/setlocalversion
+              ;;
+          esac
           #Set Kernel Timestamp
           UTS_VERSION="#1 SMP PREEMPT $(date -u +%a\ %b\ %d\ %H:%M:%S\ UTC\ %Y)"
           perl -pi -e "s|UTS_VERSION=\".*\"|UTS_VERSION=\"${UTS_VERSION}\"|" ./common/scripts/mkcompile_h
@@ -605,7 +612,7 @@ jobs:
 
       - name: Set file name
         run: |
-          ARTIFACT_BASE="${{ inputs.kernel_version }}.$ACTUAL_SUBLEVEL-${{ inputs.android_version }}-${{ inputs.os_patch_level }}-${{ matrix.build_type == 'bypass' && 'Bypass' || matrix.build_type == 'vTomsonek' && 'vTomsonek' || 'Normal' }}"
+          ARTIFACT_BASE="${{ inputs.kernel_version }}.$ACTUAL_SUBLEVEL-${{ inputs.android_version }}-${{ inputs.os_patch_level }}-${{ matrix.build_type == 'bypass' && 'Bypass' || matrix.build_type == 'vTomsonek' && 'vTomsonek' || matrix.build_type == 'TheWildJames' && 'TheWildJames' || 'Normal' }}"
           echo "ARTIFACT_BASE=$ARTIFACT_BASE" >> $GITHUB_ENV
           echo "FILE_NAME=$ARTIFACT_BASE" >> $GITHUB_ENV