Selaa lähdekoodia

Update build.yml

test less then 6.6.50 building
James McConnell 1 vuosi sitten
vanhempi
sitoutus
62f1858283
1 muutettua tiedostoa jossa 11 lisäystä ja 0 poistoa
  1. 11 0
      .github/workflows/build.yml

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

@@ -136,6 +136,17 @@ jobs:
           $REPO --version
           $REPO --trace sync -c -j$(nproc --all) --no-tags --fail-fast
 
+      - name: Fix Less Then 6.6.50 Builds
+        run: |
+          cd "$CONFIG/common"
+          if [ "${{ inputs.android_version }}" = "android15" ] && [ "${{ inputs.kernel_version }}" = "6.6" ]; then
+            if ! grep -qxF '#include <trace/hooks/fs.h>' ./fs/namespace.c; then
+                sed -i '/#include <trace\/hooks\/blk.h>/a #include <trace\/hooks\/fs.h>' ./fs/namespace.c
+            else
+                echo "Line already present. Skipping insert."
+            fi
+          fi
+
       - name: Determine the branch for KernelSU
         run: |
           case "${{ inputs.kernelsu_branch }}" in