Skip to content

Commit cf4ef53

Browse files
Update build.yml
1 parent 8c7dcc1 commit cf4ef53

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,14 @@ 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 }} --repo-rev=v2.16 --depth=1
8384
if [[ "${{ inputs.model }}" == "OP-10T" ]]; 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
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/${{ inputs.manifest }}
9486
fi
87+
88+
# Sync repo and apply patches
89+
repo --version
90+
repo --trace sync -c -j$(nproc --all) --no-tags --fail-fast -m ${{ inputs.manifest }}
9591
9692
- name: Add KernelSU
9793
run: |

0 commit comments

Comments
 (0)