Skip to content

Commit 36577b7

Browse files
Update build.yml
1 parent 1a4ff2b commit 36577b7

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,18 @@ jobs:
8080
8181
# Initialize and sync kernel source
8282
echo "Initializing and syncing kernel source..."
83-
repo init -u https://github.com/OnePlusOSS/kernel_manifest.git -b ${{ inputs.branch }} -m ${{ inputs.manifest }} --repo-rev=v2.16 --depth=1
84-
85-
# Sync repo and apply patches
86-
repo --version
87-
repo --trace sync -c -j$(nproc --all) --no-tags --fail-fast
83+
if [[ "${{ inputs.model }}" == "next" ]]; then
84+
repo init -u https://github.com/OnePlusOSS/kernel_manifest.git -b ${{ inputs.branch }} --repo-rev=v2.16 --depth=1
85+
sed -i -E '/remote="origin"/s/oneplus\/sm8475_v_15.0.0_oneplus_11r/oneplus\/sm8475_v_15.0.0_oneplus_10t/' .repo/manifests/oneplus_11r_v.xml
86+
# Sync repo and apply patches
87+
repo --version
88+
repo --trace sync -c -j$(nproc --all) --no-tags --fail-fast -m oneplus_11r_v.xml
89+
else
90+
repo init -u https://github.com/OnePlusOSS/kernel_manifest.git -b ${{ inputs.branch }} -m ${{ inputs.manifest }} --repo-rev=v2.16 --depth=1
91+
# Sync repo and apply patches
92+
repo --version
93+
repo --trace sync -c -j$(nproc --all) --no-tags --fail-fast
94+
fi
8895
8996
- name: Add KernelSU
9097
run: |

0 commit comments

Comments
 (0)