Pārlūkot izejas kodu

ci(build): skip fix_rules.c.patch for Android 14 with kernel 6.1

Add conditional logic to skip applying fix_rules.c.patch when building for Android 14 with kernel version 6.1 to avoid compatibility issues
TheWildJames 1 gadu atpakaļ
vecāks
revīzija
fa54d83d0b
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      .github/workflows/build.yml

+ 6 - 0
.github/workflows/build.yml

@@ -169,6 +169,12 @@ jobs:
           # Apply compatibility fixes
           cp ../../kernel_patches/wild/susfs_fix_patches/v1.5.9/fix_core_hook.c.patch ./
           patch -p1 --forward --fuzz=3 < fix_core_hook.c.patch
+          
+          # Skip fix_rules.c.patch for Android 14 with kernel 6.1
+          if [ "${{ inputs.android_version }}" != "android14" ] && [ "${{ inputs.kernel_version }}" != "6.1" ]; then
+            cp ../../kernel_patches/wild/susfs_fix_patches/v1.5.9/fix_rules.c.patch ./
+            patch -p1 --forward < fix_rules.c.patch
+          fi
 
           cp ../../kernel_patches/wild/susfs_fix_patches/v1.5.9/fix_sucompat.c.patch ./
           patch -p1 --forward < fix_sucompat.c.patch