Explorar el Código

ci: update actions/checkout to v5 and fix patch paths

Update GitHub Actions workflows to use actions/checkout@v5 instead of v4 for improved reliability and features. Additionally, correct the patch file paths in the susfs action to reference the proper directory structure, ensuring patches are applied correctly during the build process.
TheWildJames hace 4 meses
padre
commit
61cb2369bf

+ 5 - 5
.github/actions/susfs/action.yml

@@ -93,9 +93,9 @@ runs:
       run: |
          for file in $(find ./kernel -maxdepth 2 -name "*.rej" -exec basename {} .rej \;); do
             echo "Patching: $file"
-            patch -p1 --forward < "${{ github.workspace }}/kernel/common/kernel_patches/next/susfs_fix_patches/2.1.0/fix_${file}.patch"
+            patch -p1 --forward < "${{ github.workspace }}/kernel_patches/next/susfs_fix_patches/2.1.0/fix_${file}.patch"
           done
-          patch -p1 --forward < "${{ github.workspace }}/kernel/common/kernel_patches/next/susfs_fix_patches/2.1.0/overwrite_hook_mode.patch"
-          patch -p1 --forward < "${{ github.workspace }}/kernel/common/KernelSU-Next/kernel_patches/next/susfs_fix_patches/2.1.0/ksu_toolkit.patch"
-          patch -p1 --forward < "${{ github.workspace }}/kernel/common/KernelSU-Next/kernel_patches/next/susfs_fix_patches/2.1.0/multi_manager.patch"
-          patch -p1 --forward < "${{ github.workspace }}/kernel/common/KernelSU-Next/kernel_patches/next/susfs_fix_patches/2.1.0/multi_sepolicy_fix.patch"
+          patch -p1 --forward < "${{ github.workspace }}/kernel_patches/next/susfs_fix_patches/2.1.0/overwrite_hook_mode.patch"
+          patch -p1 --forward < "${{ github.workspace }}/kernel_patches/next/susfs_fix_patches/2.1.0/ksu_toolkit.patch"
+          patch -p1 --forward < "${{ github.workspace }}/kernel_patches/next/susfs_fix_patches/2.1.0/multi_manager.patch"
+          patch -p1 --forward < "${{ github.workspace }}/kernel_patches/next/susfs_fix_patches/2.1.0/multi_sepolicy_fix.patch"

+ 1 - 1
.github/workflows/build.yml

@@ -40,7 +40,7 @@ jobs:
 
     steps:
     - name: Checkout Repository
-      uses: actions/checkout@v4
+      uses: actions/checkout@v5
 
     - name: Parse kernel version
       id: parse

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

@@ -51,7 +51,7 @@ jobs:
       susfs_commit: ${{ steps.fetch.outputs.susfs_commit }}
     steps:
       - name: Checkout Repository
-        uses: actions/checkout@v4
+        uses: actions/checkout@v5
       - name: Fetch Commits
         id: fetch
         uses: ./.github/actions/fetch-commits
@@ -286,7 +286,7 @@ jobs:
         testing: false
 
     - name: Checkout code
-      uses: actions/checkout@v4
+      uses: actions/checkout@v5
 
     - name: Generate New Tag
       id: tag

+ 1 - 1
.github/workflows/prepare.yml

@@ -35,7 +35,7 @@ jobs:
       matrix: ${{ steps.set-matrix.outputs.matrix }}
     steps:
       - name: Checkout Repository
-        uses: actions/checkout@v4
+        uses: actions/checkout@v5
 
       - name: Read Config and Generate Matrix
         id: set-matrix