Skip to content

Commit 9745a35

Browse files
committed
Add Wild KSU Support
0 parents  commit 9745a35

File tree

3 files changed

+657
-0
lines changed

3 files changed

+657
-0
lines changed
Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
name: Build and Release OnePlus Kernels
2+
3+
permissions:
4+
contents: write
5+
actions: write
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
make_release:
11+
description: 'Do you want to create a release?'
12+
required: true
13+
type: boolean
14+
default: true
15+
wild_ksu_branch:
16+
description: "Choose Wild KSU Branch"
17+
required: true
18+
type: choice
19+
options:
20+
- stable
21+
- wild
22+
default: wild
23+
24+
jobs:
25+
build-batch-1: # Non Bazel Builds
26+
name: build-batch-1 (${{ matrix.model }}, ${{ matrix.soc }}, ${{ matrix.branch }}, ${{ matrix.manifest }}, ${{ matrix.android_version }}, ${{ matrix.kernel_version }}, ${{ inputs.ksun_branch }})
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
include:
31+
- model: OP11
32+
soc: kalama
33+
branch: oneplus/sm8550
34+
manifest: oneplus_11_v.xml
35+
android_version: android13
36+
kernel_version: "5.15"
37+
- model: OP11r
38+
soc: waipio
39+
branch: oneplus/sm8475
40+
manifest: oneplus_11r_v.xml
41+
android_version: android13
42+
kernel_version: "5.10"
43+
- model: OP-OPEN
44+
soc: kalama
45+
branch: oneplus/sm8550
46+
manifest: oneplus_open_v.xml
47+
android_version: android13
48+
kernel_version: "5.15"
49+
- model: OP-ACE-2
50+
soc: waipio
51+
branch: oneplus/sm8475
52+
manifest: oneplus_ace2_v.xml
53+
android_version: android13
54+
kernel_version: "5.10"
55+
- model: OP10t
56+
soc: waipio
57+
branch: oneplus/sm8475
58+
manifest: oneplus_10t_v.xml
59+
android_version: android12
60+
kernel_version: "5.10"
61+
- model: OP10pro
62+
soc: waipio
63+
branch: oneplus/sm8450
64+
manifest: oneplus_10_pro_v.xml
65+
android_version: android12
66+
kernel_version: "5.10"
67+
- model: OP-ACE-2-PRO
68+
soc: kalama
69+
branch: oneplus/sm8550
70+
manifest: oneplus_ace2pro_v.xml
71+
android_version: android13
72+
kernel_version: "5.15"
73+
uses: ./.github/workflows/build.yml
74+
secrets: inherit
75+
with:
76+
model: ${{ matrix.model }}
77+
soc: ${{ matrix.soc }}
78+
branch: ${{ matrix.branch }}
79+
manifest: ${{ matrix.manifest }}
80+
android_version: ${{ matrix.android_version }}
81+
kernel_version: ${{ matrix.kernel_version }}
82+
wild_ksu_branch: ${{ inputs.wild_ksu_branch }}
83+
84+
build-batch-2:
85+
# needs: build-batch-1
86+
name: build-batch-2 (${{ matrix.model }}, ${{ matrix.soc }}, ${{ matrix.branch }}, ${{ matrix.manifest }}, ${{ matrix.android_version }}, ${{ matrix.kernel_version }}, ${{ inputs.ksun_branch }})
87+
strategy:
88+
fail-fast: false
89+
matrix:
90+
include:
91+
- model: OP13
92+
soc: sun
93+
branch: oneplus/sm8750
94+
manifest: oneplus_13.xml
95+
android_version: android15
96+
kernel_version: "6.6"
97+
- model: OPAce5Pro
98+
soc: sun
99+
branch: oneplus/sm8750
100+
manifest: oneplus_ace5_pro.xml
101+
android_version: android15
102+
kernel_version: "6.6"
103+
- model: OP12
104+
soc: pineapple
105+
branch: oneplus/sm8650
106+
manifest: oneplus12_v.xml
107+
android_version: android14
108+
kernel_version: "6.1"
109+
- model: OP13r
110+
soc: pineapple
111+
branch: oneplus/sm8650
112+
manifest: oneplus_13r.xml
113+
android_version: android14
114+
kernel_version: "6.1"
115+
- model: OP-ACE-5
116+
soc: pineapple
117+
branch: oneplus/sm8650
118+
manifest: oneplus_ace5.xml
119+
android_version: android14
120+
kernel_version: "6.1"
121+
- model: OP-NORD-4
122+
soc: pineapple
123+
branch: oneplus/sm7675
124+
manifest: oneplus_nord_4_v.xml
125+
android_version: android14
126+
kernel_version: "6.1"
127+
- model: OP-PAD-2
128+
soc: pineapple
129+
branch: oneplus/sm8650
130+
manifest: oneplus_pad2_v.xml
131+
android_version: android14
132+
kernel_version: "6.1"
133+
uses: ./.github/workflows/build.yml
134+
secrets: inherit
135+
with:
136+
model: ${{ matrix.model }}
137+
soc: ${{ matrix.soc }}
138+
branch: ${{ matrix.branch }}
139+
manifest: ${{ matrix.manifest }}
140+
android_version: ${{ matrix.android_version }}
141+
kernel_version: ${{ matrix.kernel_version }}
142+
wild_ksu_branch: ${{ inputs.wild_ksu_branch }}
143+
144+
trigger-release:
145+
needs:
146+
- build-batch-1
147+
- build-batch-2
148+
runs-on: ubuntu-latest
149+
if: ${{ inputs.make_release }}
150+
env:
151+
REPO_OWNER: ${{ github.repository_owner }}
152+
REPO_NAME: ${{ github.event.repository.name }}
153+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
154+
RELEASE_NAME: "*TEST BUILD* OnePlus Kernels With KernelSU Next & SUSFS v1.5.7 *TEST BUILD*"
155+
RELEASE_NOTES: |
156+
This release contains Wild KSU and SUSFS v1.5.7
157+
158+
Module:
159+
-> https://github.com/sidex15/ksu_module_susfs
160+
161+
Non-Official Managers:
162+
-> https://github.com/WildKernels/Wild_KSU
163+
164+
Features:
165+
[+] Wild KSU
166+
[+] SUSFS v1.5.7
167+
[+] Wireguard Support
168+
[+] Maphide LineageOS Detections
169+
[+] Futile Maphide for jit-zygote-cache Detections
170+
[+] Magic Mount Support
171+
172+
steps:
173+
- name: Checkout code
174+
uses: actions/checkout@v3
175+
176+
- name: Generate and Create New Tag
177+
run: |
178+
LATEST_TAG=$(gh api repos/$REPO_OWNER/$REPO_NAME/tags --jq '.[0].name')
179+
if [ -z "$LATEST_TAG" ]; then
180+
LATEST_TAG="v1.5.7-r0"
181+
fi
182+
NEW_TAG=$(echo "$LATEST_TAG" | awk -F'-r' '{suffix=$2; if (!suffix) suffix=0; suffix++; printf "%s-r%d", $1, suffix}')
183+
echo "New tag: $NEW_TAG"
184+
echo "NEW_TAG=${NEW_TAG}" >> $GITHUB_ENV
185+
git tag $NEW_TAG
186+
git push origin $NEW_TAG
187+
188+
- name: Download Artifacts
189+
uses: actions/download-artifact@v4
190+
with:
191+
path: ./downloaded-artifacts
192+
193+
- name: Create GitHub Release
194+
uses: actions/create-release@v1
195+
with:
196+
tag_name: ${{ env.NEW_TAG }}
197+
prerelease: true
198+
release_name: ${{ env.RELEASE_NAME }}
199+
body: ${{ env.RELEASE_NOTES }}
200+
env:
201+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
202+
203+
- name: Upload Release Assets Dynamically
204+
run: |
205+
for file in ./downloaded-artifacts/kernel-*/*; do
206+
if [ -d "$file" ]; then
207+
continue
208+
fi
209+
echo "Uploading $file..."
210+
gh release upload ${{ env.NEW_TAG }} "$file"
211+
done
212+
env:
213+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
214+
NEW_TAG: ${{ env.NEW_TAG }}
215+
216+
- name: Display Files Uploaded
217+
run: |
218+
echo "GitHub release created with the following files:"
219+
ls ./downloaded-artifacts/**/*

0 commit comments

Comments
 (0)