|
28 | 28 | required: true
|
29 | 29 | type: string
|
30 | 30 | default: stable
|
| 31 | + susfs_branch: |
| 32 | + required: true |
| 33 | + type: string |
| 34 | + default: "gki-android13-5.15" |
31 | 35 |
|
32 | 36 | jobs:
|
33 | 37 | build-kernel-oneplus-kernelsu-susfs:
|
@@ -85,16 +89,32 @@ jobs:
|
85 | 89 | echo "Cloning AnyKernel3 and other dependencies..."
|
86 | 90 |
|
87 | 91 | ANYKERNEL_BRANCH="gki-2.0"
|
88 |
| - SUSFS_BRANCH="gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}" |
| 92 | + if [[ -z ]]; then |
| 93 | + SUSFS_BRANCH="gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}" |
| 94 | + else"${{ inputs.susfs_branch }}" |
| 95 | + SUSFS_BRANCH="${{ inputs.susfs_branch }}" |
| 96 | + fi |
89 | 97 |
|
90 | 98 | # Debug print the branches
|
91 | 99 | echo "Using branch for AnyKernel3: $ANYKERNEL_BRANCH"
|
92 | 100 | echo "Using branch for SUSFS: $SUSFS_BRANCH"
|
93 | 101 |
|
94 | 102 | # Clone repositories using the branch names
|
95 | 103 | git clone https://github.com/TheWildJames/AnyKernel3.git -b "$ANYKERNEL_BRANCH"
|
96 |
| - git clone https://gitlab.com/simonpunk/susfs4ksu.git -b "$SUSFS_BRANCH" |
97 | 104 | git clone https://github.com/TheWildJames/kernel_patches.git
|
| 105 | + |
| 106 | + # Clone the repo with all branches and history (can optimize later if needed) |
| 107 | + git clone https://gitlab.com/simonpunk/susfs4ksu.git |
| 108 | + cd susfs4ksu || exit 1 |
| 109 | + |
| 110 | + # Try to check if TARGET_REF is a valid branch or tag |
| 111 | + if git rev-parse --verify "origin/$SUSFS_BRANCH" >/dev/null 2>&1 || git rev-parse --verify "$SUSFS_BRANCH" >/dev/null 2>&1 ; then |
| 112 | + # It's a branch or commit hash |
| 113 | + git checkout "$SUSFS_BRANCH" |
| 114 | + else |
| 115 | + echo "Error: '$TARGET_REF' is neither a valid branch/tag nor a valid commit hash." |
| 116 | + exit 1 |
| 117 | + fi |
98 | 118 |
|
99 | 119 | - name: Initialize and Sync Kernel Source
|
100 | 120 | run: |
|
@@ -137,6 +157,9 @@ jobs:
|
137 | 157 | cp ../../susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
|
138 | 158 |
|
139 | 159 | # curl -o ./common/fs/susfs.c -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/susfs_test/susfs_debug.c
|
| 160 | + cd ./common |
| 161 | + curl -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/test_unicode.patch | patch -p1 -F 3 |
| 162 | + cd .. |
140 | 163 |
|
141 | 164 | cd ./KernelSU-Next
|
142 | 165 |
|
|
0 commit comments