Skip to content

Commit c179ae5

Browse files
committed
test unicode
1 parent 068a24a commit c179ae5

File tree

2 files changed

+30
-7
lines changed

2 files changed

+30
-7
lines changed

.github/workflows/build-kernel-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ on:
2020
- stable
2121
- next
2222
default: stable
23+
susfs_branch:
24+
required: true
25+
type: string
26+
default: "gki-android13-5.15"
2327

2428
jobs:
2529
build-batch-1: # Non Bazel Builds
@@ -86,6 +90,7 @@ jobs:
8690
android_version: ${{ matrix.android_version }}
8791
kernel_version: ${{ matrix.kernel_version }}
8892
ksun_branch: ${{ inputs.ksun_branch }}
93+
susfs_branch: ${{ inputs.susfs_branch }}
8994

9095
# build-batch-2:
9196
# # needs: build-batch-1

.github/workflows/build.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ on:
2828
required: true
2929
type: string
3030
default: stable
31+
susfs_branch:
32+
required: true
33+
type: string
34+
default: "gki-android13-5.15"
3135

3236
jobs:
3337
build-kernel-oneplus-kernelsu-susfs:
@@ -85,16 +89,32 @@ jobs:
8589
echo "Cloning AnyKernel3 and other dependencies..."
8690
8791
ANYKERNEL_BRANCH="gki-2.0"
88-
SUSFS_BRANCH="gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}"
92+
if [[ -z "${{ inputs.susfs_branch }}" ]]; then
93+
SUSFS_BRANCH="gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}"
94+
else
95+
SUSFS_BRANCH="${{ inputs.susfs_branch }}"
96+
fi
8997
9098
# Debug print the branches
9199
echo "Using branch for AnyKernel3: $ANYKERNEL_BRANCH"
92100
echo "Using branch for SUSFS: $SUSFS_BRANCH"
93101
94102
# Clone repositories using the branch names
95103
git clone https://github.com/TheWildJames/AnyKernel3.git -b "$ANYKERNEL_BRANCH"
96-
git clone https://gitlab.com/simonpunk/susfs4ksu.git -b "$SUSFS_BRANCH"
97104
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
98118
99119
- name: Initialize and Sync Kernel Source
100120
run: |
@@ -137,6 +157,9 @@ jobs:
137157
cp ../../susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
138158
139159
# 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 ..
140163
141164
cd ./KernelSU-Next
142165
@@ -183,17 +206,12 @@ jobs:
183206
fi
184207
patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
185208
186-
curl -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/susfs_test/test_kabi_2.patch | patch -p1 -F 3
187-
188-
grep -C 10 "ANDROID_KABI_RESERVE(4);" ./include/linux/sched.h
189-
190209
if ! grep -qxF '#define CMD_SUSFS_HIDE_SUS_MNTS_FOR_ALL_PROCS 0x55561' ./include/linux/susfs_def.h; then
191210
curl -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/hide_sus_mnts_for_all_procs.patch | patch -p1 -F 3
192211
else
193212
echo "Line already present. Skipping SUSFS_HIDE_SUS_MNTS_FOR_ALL_PROCS Patch."
194213
fi
195214
196-
# curl -Ls https://github.com/ximi-libra-test/android_kernel_xiaomi_libra/commit/aa52855d8658cbee7f2a2e1cdb2d646efbaded59.patch | patch -p1 -F 3
197215
KERNEL_VERSION="${{ inputs.kernel_version }}"
198216
MIN_VERSION="5.16"
199217

0 commit comments

Comments
 (0)