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

ci(build): update variant from POCO to Duchamp

Update the kernel build workflow to support a new variant named 'Duchamp'. This replaces the previous 'POCO' variant. The change includes updating the variant name in the workflow matrix and adding a new configuration step to clone a specific kernel source for the Duchamp variant.
TheWildJames 7 месяцев назад
Родитель
Сommit
d11f2f7b6c
2 измененных файлов с 9 добавлено и 10 удалено
  1. 8 9
      .github/workflows/build.yml
  2. 1 1
      .github/workflows/kernel-custom.yml

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

@@ -47,7 +47,7 @@ jobs:
               inputs.variant == 'TheWildJamesTest' && '["TheWildJamesTest"]' ||
               inputs.variant == 'TheWildJamesTest' && '["TheWildJamesTest"]' ||
               inputs.variant == 'MarionKernel' && '["MarionKernel"]' ||
               inputs.variant == 'MarionKernel' && '["MarionKernel"]' ||
               inputs.variant == 'Hakan' && '["Hakan"]' ||
               inputs.variant == 'Hakan' && '["Hakan"]' ||
-              inputs.variant == 'POCO' && '["POCO"]' ||
+              inputs.variant == 'Duchamp' && '["Duchamp"]' ||
               (inputs.build_bypass && '["Normal","Bypass"]' || '["Normal"]')
               (inputs.build_bypass && '["Normal","Bypass"]' || '["Normal"]')
             )
             )
           }}
           }}
@@ -128,6 +128,13 @@ jobs:
 
 
         repo --trace sync -c -j$(nproc --all) --fail-fast --no-tags --force-sync --no-clone-bundle
         repo --trace sync -c -j$(nproc --all) --fail-fast --no-tags --force-sync --no-clone-bundle
 
 
+    - name: Configure Kernel Options
+      if: inputs.variant == 'Duchamp'
+      working-directory: ${{ env.KERNEL_ROOT }}
+      run: |
+        rm -rf common
+        git clone --depth=1 --single-branch --branch lineage-23.0 https://github.com/mt6897-devs/android_kernel_6.1.git ./common
+
     - name: Extract Sublevel and Set File Name
     - name: Extract Sublevel and Set File Name
       run: |
       run: |
         ACTUAL_SUBLEVEL="${{ inputs.sub_level }}"
         ACTUAL_SUBLEVEL="${{ inputs.sub_level }}"
@@ -576,14 +583,6 @@ jobs:
         echo "Contents of ${{ env.DEFCONFIG }}:"
         echo "Contents of ${{ env.DEFCONFIG }}:"
         cat "${{ env.DEFCONFIG }}"
         cat "${{ env.DEFCONFIG }}"
 
 
-    - name: Configure Kernel Options
-      working-directory: ${{ env.KERNEL_ROOT }}
-      run: |
-        cat >> "${{ env.DEFCONFIG }}" << 'EOF'
-        # KernelSU Configuration
-        # CONFIG_MODULE_SIG_PROTECT is not set
-        EOF
-        
     - name: Configure Audio Modules
     - name: Configure Audio Modules
       if: inputs.variant == 'Hakan'
       if: inputs.variant == 'Hakan'
       working-directory: ${{ env.KERNEL_ROOT }}
       working-directory: ${{ env.KERNEL_ROOT }}

+ 1 - 1
.github/workflows/kernel-custom.yml

@@ -47,7 +47,7 @@ jobs:
           kernel_version: "6.1"
           kernel_version: "6.1"
           ub_level: "68"
           ub_level: "68"
           os_patch_level: "2024-03"
           os_patch_level: "2024-03"
-          variant: "POCO"
+          variant: "Duchamp"
 
 
     uses: ./.github/workflows/build.yml
     uses: ./.github/workflows/build.yml
     secrets: inherit
     secrets: inherit