Przeglądaj źródła

ci(workflows): update build matrix and artifact naming

- Rename 'apply_module_check_bypass' to 'apply_bypass' for clarity
- Add 'apply_bbg' option to build matrix
- Update artifact naming to include BBG variant
- Improve documentation about module check bypass in main.yml
TheWildJames 10 miesięcy temu
rodzic
commit
dffd0049d8
2 zmienionych plików z 15 dodań i 5 usunięć
  1. 5 3
      .github/workflows/build.yml
  2. 10 2
      .github/workflows/main.yml

+ 5 - 3
.github/workflows/build.yml

@@ -30,7 +30,8 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        apply_module_check_bypass: ["normal", "bypass"]
+        apply_bypass: ["normal", "bypass"]
+        apply_bbg: ["bbg", "no-bbg"]
 
     steps:
       - name: Maximize Build Space
@@ -323,6 +324,7 @@ jobs:
           fi
 
       - name: Add BBG
+        if: ${{ matrix.apply_bbg == 'bbg' }}
         run: |
           cd "$CONFIG"
           echo "Adding BBG..."
@@ -351,7 +353,7 @@ jobs:
           fi
 
       - name: Apply Module Check Bypass
-        if: ${{ matrix.apply_module_check_bypass == 'bypass' }}
+        if: ${{ matrix.apply_bypass == 'bypass' }}
         run: |
           if [[ "${{ inputs.kernel_version }}" == "6.1" || "${{ inputs.kernel_version }}" == "6.6" ]]; then
             cd "$CONFIG/common/kernel/module"
@@ -490,7 +492,7 @@ jobs:
             SUBLEVEL_FOR_NAME="$ACTUAL_SUBLEVEL"
           fi
           # Set artifact name base for consistent naming
-          ARTIFACT_BASE="WKSU-${{ env.KSUVER }}-SUSFS_${{ inputs.susfs_version }}-${{ inputs.android_version }}-${{ inputs.kernel_version }}.${SUBLEVEL_FOR_NAME}-${{ inputs.os_patch_level }}-${{ matrix.apply_module_check_bypass == 'bypass' && 'Module_Check_Bypass' || 'Normal' }}"
+          ARTIFACT_BASE="WKSU-${{ env.KSUVER }}-SUSFS_${{ inputs.susfs_version }}-${{ inputs.android_version }}-${{ inputs.kernel_version }}.${SUBLEVEL_FOR_NAME}-${{ inputs.os_patch_level }}-${{ matrix.apply_bypass == 'bypass' && 'Bypass' || 'Normal' }}${{ matrix.apply_bbg == 'bbg' && '-BBG' || '' }}"
           echo "ARTIFACT_BASE=$ARTIFACT_BASE" >> $GITHUB_ENV
           echo "FILE_NAME=$ARTIFACT_BASE" >> $GITHUB_ENV
 

+ 10 - 2
.github/workflows/main.yml

@@ -201,8 +201,16 @@ jobs:
           The developers are not responsible for any damage, data loss, or issues that may occur.
           Please ensure you have proper backups before installation.
 
-          NEW:
-          -> **Module Check Bypass Variant**: Normal build with additional hack for compatibility, if you encounter any issues with the normal build try this!
+          🔹 Normal 
+          - Default kernel configuration 
+          - Standard kernel module loading behavior 
+          - Recommended for most users 
+
+          🔹 Bypass 
+          - Includes module check bypass modifications 
+          - What are kernel modules? Kernel modules are pieces of code that can be loaded into the kernel at runtime to extend functionality (like device drivers, filesystem support, etc.). These are different from KernelSU/Magisk modules. 
+          - The Problem: Sometimes when installing a custom kernel, the device tries to load a kernel module that fails due to version mismatches, missing dependencies, or signature verification issues. This can cause boot failures or device instability. 
+          - The Solution: This version changes one line from false to true to force load the kernel module, bypassing the failure check that would normally prevent loading.
       
           Features:
           -> Wild KSU