Browse Source

fix: update working directory for artifact gathering and streamline patch application

TheWildJames 3 months ago
parent
commit
cccfc2597a

+ 3 - 5
.github/actions/build-kernel/action.yml

@@ -118,11 +118,9 @@ runs:
   - name: 'Gather Build Artifacts'
     shell: bash
     if: ${{ inputs.bypass == 'true' }}
-    working-directory: ${{ github.workspace }}
+    working-directory: ${{ github.workspace }}/AnyKernel3
     run: |
       set -euo pipefail
-      PATCH_FILE="${{ github.action_path }}/patches/bypass.patch"
-      if [ -f "$PATCH_FILE" ]; then
-        patch -p1 -d "${{ github.workspace }}/AnyKernel3" -p1 < "$PATCH_FILE"
-      fi
+      cp ${{ github.action_path }}/patches/bypass.patch "${{ github.workspace }}/AnyKernel3/bypass.patch"
+      patch -p1 < bypass.patch
 

+ 2 - 3
.github/actions/build-kernel/patches/bypass.patch

@@ -1,6 +1,5 @@
-diff --git a/AnyKernel3/anykernel.sh b/AnyKernel3/anykernel.sh
---- a/AnyKernel3/anykernel.sh	2026-05-23 20:16:58.305522267 -0400
-+++ b/AnyKernel3/anykernel.sh	2026-05-23 21:32:11.537813431 -0400
+--- a/anykernel.sh	2026-05-23 20:16:58.305522267 -0400
++++ b/anykernel.sh	2026-05-23 21:32:11.537813431 -0400
 @@ -45,6 +45,72 @@
  ui_print " " "  -> Wild Kernels Supported: $ksu_supported"
  $ksu_supported || abort "  -> Non-GKI device, abort."