Skip to content

Commit 4c97e10

Browse files
committed
test unicode
1 parent 068a24a commit 4c97e10

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
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 & 2 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 ]]; then
93+
SUSFS_BRANCH="gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}"
94+
else"${{ inputs.susfs_branch }}"
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

0 commit comments

Comments
 (0)