-
Notifications
You must be signed in to change notification settings - Fork 1
123 lines (111 loc) · 3.62 KB
/
main.yml
File metadata and controls
123 lines (111 loc) · 3.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name: Build KernelSU LKM zip
on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download ksud file
uses: dawidd6/action-download-artifact@v3.1.2
with:
repo: tiann/KernelSU
branch: main
workflow: build-manager.yml
workflow_conclusion: success
name: ksud-aarch64-linux-android
path: .
- name: Prepare flashing zip file
run: |
git clone https://github.com/snowwolf725/AnyKernel3 -b oneplus12 --depth=1
rm -rf AnyKernel3/.git
mv ksud AnyKernel3/tools/
chmod +x AnyKernel3/tools/ksud
- name: Get Version
id: get_version
run: |
git clone https://github.com/tiann/KernelSU kernelsu
cd kernelsu
git pull
git rev-list --count HEAD
echo "VERSION=$(expr $(git rev-list --count HEAD) + 10200)" >> $GITHUB_OUTPUT
cd ../
- name: Download KernelSU KO file
uses: dawidd6/action-download-artifact@v3.1.2
with:
repo: tiann/KernelSU
branch: main
workflow: build-manager.yml
workflow_conclusion: success
name: android14-6.1-lkm
path: .
- name: Create KernelSU AK3 zip
run: |
mv android14-6.1_kernelsu.ko AnyKernel3/kernelsu.ko
cd AnyKernel3
zip -r ../OP12-KernelSU-${{ steps.get_version.outputs.VERSION }}.zip *
cd ..
- name: Download KernelSU Next KO file
uses: dawidd6/action-download-artifact@v3.1.2
with:
repo: KernelSU-Next/KernelSU-Next
branch: dev
workflow: build-manager-ci.yml
workflow_conclusion: success
name: android14-6.1-lkm
path: .
- name: Create KernelSU NEXT AK3 zip
run: |
mv android14-6.1_kernelsu.ko AnyKernel3/kernelsu.ko
cd AnyKernel3
zip -r ../OP12-KernelSUNext-${{ steps.get_version.outputs.VERSION }}.zip *
cd ..
- name: Download SukiSU KO file
uses: dawidd6/action-download-artifact@v3.1.2
with:
repo: SukiSU-Ultra/SukiSU-Ultra
branch: main
workflow: build-manager.yml
workflow_conclusion: success
name: android14-6.1-lkm
path: .
- name: Create SukiSU AK3 zip
run: |
mv android14-6.1_kernelsu.ko AnyKernel3/kernelsu.ko
cd AnyKernel3
zip -r ../OP12-SukiSU-${{ steps.get_version.outputs.VERSION }}.zip *
cd ..
- name: Download ReSukiSU KO file
uses: dawidd6/action-download-artifact@v3.1.2
with:
repo: ReSukiSU/ReSukiSU
branch: main
workflow: build-manager.yml
workflow_conclusion: success
name: android14-6.1-lkm
path: .
- name: Create ReSukiSU AK3 zip
run: |
mv android14-6.1_kernelsu.ko AnyKernel3/kernelsu.ko
cd AnyKernel3
zip -r ../OP12-ReSukiSU-${{ steps.get_version.outputs.VERSION }}.zip *
cd ..
- name: Upload to Release
uses: softprops/action-gh-release@v2
with:
files: |
OP12-KernelSU-${{ steps.get_version.outputs.VERSION }}.zip
OP12-KernelSUNext-${{ steps.get_version.outputs.VERSION }}.zip
OP12-SukiSU-${{ steps.get_version.outputs.VERSION }}.zip
OP12-ReSukiSU-${{ steps.get_version.outputs.VERSION }}.zip
name: OnePlus12_kernelsu-${{ steps.get_version.outputs.VERSION }}
tag_name: ${{ steps.get_version.outputs.VERSION }}
body: |
Device: Oneplus 12
Target: OOS14/15/16, COS14/15/16
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}