Skip to content
Open

1 #198

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
236 commits
Select commit Hold shift + click to select a range
dfc4433
Create config_MeteoricSU.env
Rinrroy Apr 22, 2023
7f4f43f
Create build-kernel-MeteoricSU.yml
Rinrroy Apr 22, 2023
0e34dec
Delete boot directory
Rinrroy Apr 22, 2023
b55374d
Update build-kernel-MeteoricSU.yml
Rinrroy Apr 22, 2023
3e3fd12
Update config_MeteoricSU.env
Rinrroy Apr 22, 2023
0b397d3
Update build-kernel-MeteoricSU.yml
Rinrroy Apr 22, 2023
bee6e62
Create build-kernel-Meteoric.yml
Rinrroy Apr 22, 2023
d43abdc
Create config_Meteoric.env
Rinrroy Apr 22, 2023
bd14386
Update build-kernel-Meteoric.yml
Rinrroy Apr 22, 2023
78f2e00
Update build-kernel-MeteoricSU.yml
Rinrroy Apr 25, 2023
97c96ac
Update build-kernel-MeteoricSU.yml
Rinrroy Apr 25, 2023
a1a50c4
Update build-kernel-Meteoric.yml
Rinrroy Apr 25, 2023
8c8aac6
Update build-kernel-MeteoricSU.yml
Rinrroy Apr 29, 2023
63476e4
Update build-kernel-Meteoric.yml
Rinrroy Apr 29, 2023
645ed6a
Update build-kernel-Meteoric.yml
Rinrroy Apr 29, 2023
8296709
Update build-kernel-Meteoric.yml
Rinrroy Apr 29, 2023
b8cb57a
Update build-kernel-Meteoric.yml
Rinrroy Apr 29, 2023
191961c
Update build-kernel-MeteoricSU.yml
Rinrroy Apr 29, 2023
04893a0
Create config_realmegtneo2.env
Rinrroy May 16, 2023
ab6d9bb
Create build-kernel-realmegtneo2.yml
Rinrroy May 16, 2023
9c98820
Update build-kernel-realmegtneo2.yml
Rinrroy May 16, 2023
d9b8283
Delete config_realmegtneo2.env
Rinrroy May 16, 2023
0d3afe0
Delete build-kernel-realmegtneo2.yml
Rinrroy May 16, 2023
33ecb15
Update config_MeteoricSU.env
Rinrroy May 19, 2023
e821e92
Update config_MeteoricSU.env
Rinrroy May 19, 2023
c4be39a
更新 config_MeteoricSU.env
Rinrroy May 19, 2023
796ba92
Update config_MeteoricSU.env
Rinrroy May 20, 2023
94e23f7
Update build-kernel-MeteoricSU.yml
Rinrroy May 20, 2023
3c89e4f
Update config_MeteoricSU.env
Rinrroy May 20, 2023
3d7e619
更新 build-kernel-MeteoricSU.yml
Rinrroy May 20, 2023
203ea6c
Update build-kernel-Meteoric.yml
Rinrroy May 20, 2023
f719aa3
更新 config_MeteoricSU.env
Rinrroy May 20, 2023
ec7b1b9
Update build-kernel-MeteoricSU.yml
Rinrroy May 20, 2023
cb2e1e6
Update config_Meteoric.env
Rinrroy May 20, 2023
8203bea
Update config_MeteoricSU.env
Rinrroy May 20, 2023
02f5237
更新 config_MeteoricSU.env
Rinrroy May 20, 2023
9306aa0
更新 config_MeteoricSU.env
Rinrroy May 20, 2023
5367204
Create build-kernelSU.yml
Rinrroy May 20, 2023
051666c
Delete build-kernelSU.yml
Rinrroy May 20, 2023
36e4ecd
Update config_MeteoricSU.env
Rinrroy May 20, 2023
3bc3c18
Update config_MeteoricSU.env
Rinrroy May 20, 2023
2c89715
Update config_MeteoricSU.env
Rinrroy May 20, 2023
b4fd9d3
Create Build-KernelSU
Rinrroy May 20, 2023
5b7bfaa
Rename Build-KernelSU to Build-KernelSU.yml
Rinrroy May 20, 2023
ac22c1e
Create config_KernelSU.env
Rinrroy May 20, 2023
81da8fa
Update Build-KernelSU.yml
Rinrroy May 20, 2023
aa3f716
Update config_MeteoricSU.env
Rinrroy May 20, 2023
4b61770
Update config_MeteoricSU.env
Rinrroy May 20, 2023
5f466c9
Update config_KernelSU.env
Rinrroy May 20, 2023
5c38e6c
Update config_MeteoricSU.env
Rinrroy May 20, 2023
6ea9dc8
更新 Build-KernelSU.yml
Rinrroy May 20, 2023
15095fc
Update build-kernel-MeteoricSU.yml
Rinrroy May 20, 2023
0da8e9a
Update config_MeteoricSU.env
Rinrroy May 20, 2023
d6609de
Update config_KernelSU.env
Rinrroy May 20, 2023
f63ca99
Delete config_KernelSU.env
Rinrroy May 20, 2023
0c97d9c
Delete Build-KernelSU.yml
Rinrroy May 20, 2023
3552968
Update config_MeteoricSU.env
Rinrroy May 20, 2023
7e26787
Create Build-KernelSU.yml
Rinrroy May 20, 2023
bcac354
Create config-SU.env
Rinrroy May 20, 2023
8408ccd
Update Build-KernelSU.yml
Rinrroy May 20, 2023
caed92e
Update Build-KernelSU.yml
Rinrroy May 20, 2023
ab340d8
Update build-kernel-MeteoricSU.yml
Rinrroy May 20, 2023
33db2fb
Update config_MeteoricSU.env
Rinrroy May 20, 2023
51ca412
Delete config-SU.env
Rinrroy May 21, 2023
37a34b8
Delete Build-KernelSU.yml
Rinrroy May 21, 2023
889dd85
更新 config_MeteoricSU.env
Rinrroy May 21, 2023
8fb6241
Update config_MeteoricSU.env
Rinrroy May 21, 2023
6bdd242
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
8604c3d
Update README.md
Rinrroy May 21, 2023
662ff87
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
4586432
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
15e35d9
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
147b8f4
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
e55fbef
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
25882f9
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
ef34374
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
56d591b
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
a27810b
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
6ddff98
Update config.env
Rinrroy May 21, 2023
17efe3a
更新 build-kernel.yml
Rinrroy May 21, 2023
6f19238
修改Custom-Clang拉取逻辑
Rinrroy May 21, 2023
43f7194
Update config_MeteoricSU.env
Rinrroy May 21, 2023
d2fdaf8
Update config.env
Rinrroy May 21, 2023
d7796d5
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
43e52d3
Update config_MeteoricSU.env
Rinrroy May 21, 2023
a731b98
Update README.md
Rinrroy May 21, 2023
a790819
Update config_MeteoricSU.env
Rinrroy May 21, 2023
4536ed1
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
5917cae
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
0c18513
Update config_MeteoricSU.env
Rinrroy May 21, 2023
9aebfd1
Update config.env
Rinrroy May 21, 2023
32fc457
Update build-kernel.yml
Rinrroy May 21, 2023
e1746c1
Update config_MeteoricSU.env
Rinrroy May 21, 2023
14ef11d
Update config.env
Rinrroy May 21, 2023
cfa7eb2
Update config_MeteoricSU.env
Rinrroy May 21, 2023
7105e91
Update config_MeteoricSU.env
Rinrroy May 21, 2023
326e37b
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
0966031
Create Build-KernelSU.yml
Rinrroy May 21, 2023
595718d
Update config_MeteoricSU.env
Rinrroy May 21, 2023
7b5765c
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
baafc8a
Delete Build-KernelSU.yml
Rinrroy May 21, 2023
140608f
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
0487075
Create build-kernel-MeteoricSUU.yml
Rinrroy May 21, 2023
132a643
Update and rename build-kernel-MeteoricSUU.yml to Build-KernelSU.yml
Rinrroy May 21, 2023
a969200
Update config_MeteoricSU.env
Rinrroy May 21, 2023
f88a3c7
Update config_MeteoricSU.env
Rinrroy May 21, 2023
b64d7c4
Update config_MeteoricSU.env
Rinrroy May 21, 2023
118d2bf
合并更新
Rinrroy May 21, 2023
93b547e
合并更新
Rinrroy May 21, 2023
f1fb977
合并更新
Rinrroy May 21, 2023
9b8505a
合并更新
Rinrroy May 21, 2023
29f6777
合并更新
Rinrroy May 21, 2023
604cbbc
合并更新
Rinrroy May 21, 2023
8229164
Update config_MeteoricSU.env
Rinrroy May 21, 2023
baf4a7e
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
dccef56
Update config_MeteoricSU.env
Rinrroy May 21, 2023
64babda
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
49092ed
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
efc6108
Update config_MeteoricSU.env
Rinrroy May 21, 2023
703beb5
Update config_MeteoricSU.env
Rinrroy May 21, 2023
619b647
Update config_MeteoricSU.env
Rinrroy May 21, 2023
a292975
Update config_MeteoricSU.env
Rinrroy May 21, 2023
9acb08c
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
7e3b5ac
Update config_MeteoricSU.env
Rinrroy May 21, 2023
665e580
Update config_MeteoricSU.env
Rinrroy May 21, 2023
e99bac2
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
9a4865b
Update config_MeteoricSU.env
Rinrroy May 21, 2023
a85ce3a
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
12dc3ea
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
dc31979
Update Build-KernelSU.yml
Rinrroy May 21, 2023
57cc110
Update Build-KernelSU.yml
Rinrroy May 21, 2023
8ad259f
Update and rename Build-KernelSU.yml to BuildKernelSU.yml
Rinrroy May 21, 2023
25562aa
Update and rename BuildKernelSU.yml to Build-KernelSU.yml
Rinrroy May 21, 2023
ff7d0de
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
13e7cea
Update config_MeteoricSU.env
Rinrroy May 21, 2023
3c1a1dc
Update config_MeteoricSU.env
Rinrroy May 21, 2023
0778e0b
Update config_MeteoricSU.env
Rinrroy May 21, 2023
e6a6b1d
Update config_MeteoricSU.env
Rinrroy May 21, 2023
5f8e2a2
Update config_MeteoricSU.env
Rinrroy May 21, 2023
6ce225d
Update build-kernel-MeteoricSU.yml
Rinrroy May 21, 2023
c87a641
Update config_MeteoricSU.env
Rinrroy May 22, 2023
051c280
Update and rename config_Meteoric.env to config_Stellaris.env
Rinrroy May 22, 2023
3096728
Update and rename Build-KernelSU.yml to Build-Stellaris.yml
Rinrroy May 22, 2023
4023fbd
Update config_Stellaris.env
Rinrroy May 23, 2023
b346517
Update config_Stellaris.env
Rinrroy May 25, 2023
d8efbc5
Changed Branch sdcardfs
Rinrroy May 26, 2023
e4b1860
CI: Separate the setup configuration parts
Rinrroy May 27, 2023
7f1c161
config.env: Sync function
Rinrroy May 27, 2023
a3865a4
CI: Separate the setup configuration parts
Rinrroy May 27, 2023
3a87bd2
CI: Separate the setup configuration parts
Rinrroy May 27, 2023
1a10f5a
Update Build-Stellaris.yml
Rinrroy May 27, 2023
8317c07
Create config_Oplus.env
Rinrroy May 27, 2023
2369588
Create Build-Oplus.yml
Rinrroy May 27, 2023
c8526da
Update config_Oplus.env
Rinrroy May 27, 2023
cba00f5
Update config_Oplus.env
Rinrroy May 27, 2023
a03b1bb
Update config_Oplus.env
Rinrroy May 27, 2023
17bf20b
Update config_Oplus.env
Rinrroy May 27, 2023
d3eaf8c
Update config_Oplus.env
Rinrroy May 27, 2023
6924dc7
Delete config_Oplus.env
Rinrroy May 27, 2023
9348a2d
Delete Build-Oplus.yml
Rinrroy May 27, 2023
b4d04ba
Create config_Oplus.env
Rinrroy May 28, 2023
59ea8fa
Create Build-Oplus.yml
Rinrroy May 28, 2023
25c548d
Update config_Oplus.env
Rinrroy May 28, 2023
d01f092
Update Build-Oplus.yml
Rinrroy May 28, 2023
383c131
Update Build-Oplus.yml
Rinrroy May 28, 2023
2c6d785
Update Build-Oplus.yml
Rinrroy May 28, 2023
2629d13
Update Build-Oplus.yml
Rinrroy May 28, 2023
a703149
Update config_Stellaris.env
Rinrroy Jun 2, 2023
6de6c7d
Update config_Stellaris.env
Rinrroy Jun 3, 2023
13affde
Update config_Stellaris.env
Rinrroy Jun 3, 2023
2a42717
Create config_Lineage.env
Rinrroy Jun 3, 2023
58a803a
Create Build-Lineage.yml
Rinrroy Jun 3, 2023
7eef30e
Update config_Lineage.env
Rinrroy Jun 3, 2023
de052fa
Update and rename config_Lineage.env to config_PixelExperience.env
Rinrroy Jun 3, 2023
ee82ec8
Update and rename Build-Lineage.yml to Build-PixelExperience.yml
Rinrroy Jun 3, 2023
abd357a
Update and rename config_PixelExperience.env to config_Lineage.env
Rinrroy Jun 3, 2023
c9214e7
Update Build-PixelExperience.yml
Rinrroy Jun 3, 2023
fa0127e
Rename Build-PixelExperience.yml to Build-Lineage.yml
Rinrroy Jun 3, 2023
9b96347
Update config_Lineage.env
Rinrroy Jun 3, 2023
bf5bc46
Update config_Lineage.env
Rinrroy Jun 3, 2023
904511a
Update config_MeteoricSU.env
Rinrroy Jun 3, 2023
f85bbb3
Update build-kernel-MeteoricSU.yml
Rinrroy Jun 3, 2023
73fbf13
Update config_Lineage.env
Rinrroy Jun 3, 2023
c7af4dc
Create config_Nameless.env
Rinrroy Jun 18, 2023
f27eac7
Update build-kernel-MeteoricSU.yml
Rinrroy Jun 18, 2023
0171eb9
Create build-kernel-Nameless.yml
Rinrroy Jun 18, 2023
f8bc3ba
Update config_Nameless.env
Rinrroy Jun 18, 2023
9d768e6
Update config_Nameless.env
Rinrroy Jun 18, 2023
6d39c49
Update config_Nameless.env
Rinrroy Jun 18, 2023
ae50fae
Update config_Nameless.env
Rinrroy Jun 18, 2023
215b25b
Update config_Nameless.env
Rinrroy Jun 18, 2023
882f405
Update build-kernel-Nameless.yml
Rinrroy Jun 18, 2023
1f9f283
Delete config_Lineage.env
Rinrroy Jun 18, 2023
7040009
Delete config_Oplus.env
Rinrroy Jun 18, 2023
1a87ec9
Delete Build-Oplus.yml
Rinrroy Jun 18, 2023
dcf4b12
Delete build-kernel-Meteoric.yml
Rinrroy Jun 18, 2023
a96d01c
Delete Build-Lineage.yml
Rinrroy Jun 18, 2023
4348e7d
Update README.md
Rinrroy Jun 18, 2023
ebcc7c3
README_EN: Thank for ChatGPT, and I also hope someone can help me tra…
Rinrroy Jun 18, 2023
8ac8746
Delete config_Stellaris.env
Rinrroy Jun 18, 2023
bd94738
Delete Build-Stellaris.yml
Rinrroy Jun 18, 2023
e84eb72
Create config_Stellaris.env
Rinrroy Jun 28, 2023
41e0972
Create build-kernel-Stellaris.yml
Rinrroy Jun 28, 2023
4ceb2d1
Update config_Stellaris.env
Rinrroy Jul 1, 2023
cf724a2
Create config_flame.env
Rinrroy Jul 11, 2023
159528f
Create build-kernel_flame.yml
Rinrroy Jul 11, 2023
936bfe7
Update config_flame.env
Rinrroy Jul 11, 2023
61f3bd8
Update config_flame.env
Rinrroy Jul 11, 2023
14fac8e
Update config_flame.env
Rinrroy Jul 11, 2023
540a5ff
Create config_bluespark.env
r1172464137 Jul 19, 2023
ece6305
Rename config_bluespark.env to config_blu_spark.env
r1172464137 Jul 19, 2023
03f24a8
Create build-kernel-blu_spark.yml
r1172464137 Jul 19, 2023
7019d29
Update config_blu_spark.env
r1172464137 Aug 10, 2023
b0151ad
Update config_blu_spark.env
r1172464137 Aug 11, 2023
30ed3ef
Update config_blu_spark.env
r1172464137 Aug 11, 2023
8086a06
Update config_blu_spark.env
r1172464137 Aug 11, 2023
7ce3a61
Update config_Nameless.env
r1172464137 Aug 20, 2023
4bc81ad
Update config_Nameless.env
r1172464137 Aug 20, 2023
9c1eac6
Update config_Nameless.env
r1172464137 Aug 21, 2023
494234e
Update config_Nameless.env
Kdjjjjn123 Feb 6, 2024
60f6617
Update config_MeteoricSU.env
Kdjjjjn123 Feb 19, 2024
2dd0853
Update build-kernel-MeteoricSU.yml
Kdjjjjn123 Feb 19, 2024
f0adfdb
Update build-kernel-MeteoricSU.yml
Kdjjjjn123 Feb 19, 2024
0fd7dce
Update config_MeteoricSU.env
Kdjjjjn123 Feb 19, 2024
a97d469
Update config.env
Kdjjjjn123 Feb 20, 2024
33e4e89
Update config.env
Kdjjjjn123 Feb 20, 2024
6d1d534
Update config_MeteoricSU.env
Kdjjjjn123 Feb 24, 2024
ef08d0e
Update config.env
Kdjjjjn123 Mar 11, 2024
fb615b3
Update config.env
Kdjjjjn123 Mar 11, 2024
03c849d
Update config.env
Kdjjjjn123 Mar 26, 2024
01bc8c1
Update config.env
Kdjjjjn123 Mar 26, 2024
d7b8cbd
Update config.env
Kdjjjjn123 Mar 26, 2024
850120c
Update build-kernel.yml
Kdjjjjn123 Mar 26, 2024
f56f049
Update config_Nameless.env
Kdjjjjn123 Mar 25, 2025
e53aa8c
Update config_Nameless.env
Kdjjjjn123 Mar 25, 2025
387be4b
Update config_flame.env
Kdjjjjn123 Apr 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
237 changes: 237 additions & 0 deletions .github/workflows/build-kernel-MeteoricSU.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
name: Build Kernel MeteoricSU
on:
workflow_dispatch:
schedule:
- cron: '0 21 * * 2,6'

jobs:
build:
name: Build Kernel by ${{ github.actor }}
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
env:
CCACHE_COMPILERCHECK: "%compiler% -dumpmachine; %compiler% -dumpversion"
CCACHE_NOHASHDIR: "true"
CCACHE_HARDLINK: "true"
steps:
- uses: actions/checkout@v3
- name: Prepare Configuration
run: |
echo "KERNEL_SOURCE=$(cat config_MeteoricSU.env | grep -w "KERNEL_SOURCE" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "KERNEL_SOURCE_BRANCH=$(cat config_MeteoricSU.env | grep -w "KERNEL_SOURCE_BRANCH" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "KERNEL_CONFIG=$(cat config_MeteoricSU.env | grep -w "KERNEL_CONFIG" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "KERNEL_IMAGE_NAME=$(cat config_MeteoricSU.env | grep -w "KERNEL_IMAGE_NAME" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "ARCH=$(cat config_MeteoricSU.env | grep -w "ARCH" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "EXTRA_CMDS=$(cat config_MeteoricSU.env | grep -w "EXTRA_CMDS" | head -n 1 | cut -d ":" -f 2)" >> $GITHUB_ENV
echo "USE_CUSTOM_CLANG=$(cat config_MeteoricSU.env | grep -w "USE_CUSTOM_CLANG" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "CUSTOM_CLANG_SOURCE=$(cat config_MeteoricSU.env | grep -w "CUSTOM_CLANG_SOURCE" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "CUSTOM_CLANG_BRANCH=$(cat config_MeteoricSU.env | grep -w "CUSTOM_CLANG_BRANCH" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "CUSTOM_CMDS=$(cat config_MeteoricSU.env | grep -w "CUSTOM_CMDS" | head -n 1 | cut -d ":" -f 2)" >> $GITHUB_ENV
echo "CLANG_BRANCH=$(cat config_MeteoricSU.env | grep -w "CLANG_BRANCH" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "CLANG_VERSION=$(cat config_MeteoricSU.env | grep -w "CLANG_VERSION" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "ENABLE_GCC_ARM64=$(cat config_MeteoricSU.env | grep -w "ENABLE_GCC_ARM64" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "ENABLE_GCC_ARM32=$(cat config_MeteoricSU.env | grep -w "ENABLE_GCC_ARM32" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "ENABLE_KERNELSU=$(cat config_MeteoricSU.env | grep -w "ENABLE_KERNELSU" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "KERNELSU_TAG=$(cat config_MeteoricSU.env | grep -w "KERNELSU_TAG" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "ADD_KPROBES_CONFIG=$(cat config_MeteoricSU.env | grep -w "ADD_KPROBES_CONFIG" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "DISABLE-LTO=$(cat config_MeteoricSU.env | grep -w "DISABLE-LTO" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "ADD_OVERLAYFS_CONFIG=$(cat config_MeteoricSU.env | grep -w "ADD_OVERLAYFS_CONFIG" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "DISABLE_CC_WERROR=$(cat config_MeteoricSU.env | grep -w "DISABLE_CC_WERROR" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "ENABLE_CCACHE=$(cat config_MeteoricSU.env | grep -w "ENABLE_CCACHE" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "NEED_DTBO=$(cat config_MeteoricSU.env | grep -w "NEED_DTBO" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "BUILD_BOOT_IMG=$(cat config_MeteoricSU.env | grep -w "BUILD_BOOT_IMG" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "SOURCE_BOOT_IMAGE=$(cat config_MeteoricSU.env | grep -w "SOURCE_BOOT_IMAGE" | head -n 1 | cut -d "=" -f 2)" >> $GITHUB_ENV

- name: Setup build kernel environment
run: |
echo "BUILD_TIME=$(TZ=Asia/Shanghai date "+%Y%m%d%H%M")" >> $GITHUB_ENV
echo "DEVICE=$(echo ${{ env.KERNEL_CONFIG }} | sed 's!vendor/!!;s/_defconfig//;s/_user//;s/-perf//')" >> $GITHUB_ENV
sudo apt-get update
sudo apt-get install git ccache automake flex lzop bison gperf build-essential zip curl zlib1g-dev g++-multilib libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng maven libssl-dev pwgen libswitch-perl policycoreutils minicom libxml-sax-base-perl libxml-simple-perl bc libc6-dev-i386 lib32ncurses5-dev libx11-dev lib32z-dev libgl1-mesa-dev xsltproc unzip device-tree-compiler python2 python3
mkdir -p $GITHUB_WORKSPACE/kernel_workspace

- name: Download Clang-aosp
if: env.USE_CUSTOM_CLANG == 'false'
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
mkdir clang-aosp
wget https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+archive/refs/heads/${{ env.CLANG_BRANCH }}/clang-${{ env.CLANG_VERSION }}.tar.gz
tar -C clang-aosp/ -zxvf clang-${{ env.CLANG_VERSION }}.tar.gz

- name: Download Custom-Clang
if: env.USE_CUSTOM_CLANG == 'true'
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
if [[ ${{ env.CUSTOM_CLANG_SOURCE }} =~ git ]]; then
if [[ ${{ env.CUSTOM_CLANG_SOURCE }} == *'.tar.gz' ]]; then
wget -O clang.tar.gz ${{ env.CUSTOM_CLANG_SOURCE }}
mkdir clang-aosp
tar -C clang-aosp/ -zxvf clang.tar.gz
else
git clone ${{ env.CUSTOM_CLANG_SOURCE }} -b ${{ env.CUSTOM_CLANG_BRANCH }} clang-aosp --depth=1
fi
else
wget -O clang.zip ${{ env.CUSTOM_CLANG_SOURCE }}
mkdir clang-aosp
unzip clang.zip -d clang-aosp/
fi

- name: Download Gcc-aosp
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
if [ ${{ env.ENABLE_GCC_ARM64 }} = true ]; then
mkdir gcc-64
wget -O gcc-aarch64.tar.gz https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/+archive/refs/tags/android-12.1.0_r27.tar.gz
tar -C gcc-64/ -zxvf gcc-aarch64.tar.gz
echo "GCC_64=CROSS_COMPILE=$GITHUB_WORKSPACE/kernel_workspace/gcc-64/bin/aarch64-linux-android-" >> $GITHUB_ENV
fi

if [ ${{ env.ENABLE_GCC_ARM32 }} = true ]; then
mkdir gcc-32
wget -O gcc-arm.tar.gz https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/+archive/refs/tags/android-12.1.0_r27.tar.gz
tar -C gcc-32/ -zxvf gcc-arm.tar.gz
echo "GCC_32=CROSS_COMPILE_ARM32=$GITHUB_WORKSPACE/kernel_workspace/gcc-32/bin/arm-linux-androideabi-" >> $GITHUB_ENV
fi

- name: Download mkbootimg tools
if: env.BUILD_BOOT_IMG == 'true'
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
git clone https://android.googlesource.com/platform/system/tools/mkbootimg tools -b master-kernel-build-2022 --depth=1

- name: Download kernel source
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
git clone ${{ env.KERNEL_SOURCE }} -b ${{ env.KERNEL_SOURCE_BRANCH }} android-kernel --depth=1

- name: Download source boot image
if: env.BUILD_BOOT_IMG == 'true'
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
wget -O boot-source.img ${{ env.SOURCE_BOOT_IMAGE }}
if [ -f boot-source.img ]; then
echo "FORMAT_MKBOOTING=$(echo `tools/unpack_bootimg.py --boot_img=boot-source.img --format mkbootimg`)" >> $GITHUB_ENV
echo "HAVE_SOURCE_BOOT_IMAGE=true" >> $GITHUB_ENV
fi

- name: Setup KernelSU
if: env.ENABLE_KERNELSU == 'true'
run: |
cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -

- name: Setup Configuration for Kernel
run: |
cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel
if [ ${{ env.ADD_KPROBES_CONFIG }} = true ]; then
echo "CONFIG_MODULES=y" >> arch/${{ env.ARCH }}/configs/${{ env.KERNEL_CONFIG }}
echo "CONFIG_KPROBES=y" >> arch/${{ env.ARCH }}/configs/${{ env.KERNEL_CONFIG }}
echo "CONFIG_HAVE_KPROBES=y" >> arch/${{ env.ARCH }}/configs/${{ env.KERNEL_CONFIG }}
echo "CONFIG_KPROBE_EVENTS=y" >> arch/${{ env.ARCH }}/configs/${{ env.KERNEL_CONFIG }}
fi
if [ ${{ env.ADD_OVERLAYFS_CONFIG }} = true ]; then
echo "CONFIG_OVERLAY_FS=y" >> arch/${{ env.ARCH }}/configs/${{ env.KERNEL_CONFIG }}
fi
if [ ${{ env.DISABLE-LTO }} = true ]; then
sed -i 's/CONFIG_LTO=y/CONFIG_LTO=n/' arch/${{ env.ARCH }}/configs/${{ env.KERNEL_CONFIG }}
sed -i 's/CONFIG_LTO_CLANG=y/CONFIG_LTO_CLANG=n/' arch/${{ env.ARCH }}/configs/${{ env.KERNEL_CONFIG }}
sed -i 's/CONFIG_THINLTO=y/CONFIG_THINLTO=n/' arch/${{ env.ARCH }}/configs/${{ env.KERNEL_CONFIG }}
echo "CONFIG_LTO_NONE=y" >> arch/${{ env.ARCH }}/configs/${{ env.KERNEL_CONFIG }}
fi
if [ ${{ env.DISABLE_CC_WERROR }} = true ]; then
echo "CONFIG_CC_WERROR=n" >> arch/${{ env.ARCH }}/configs/${{ env.KERNEL_CONFIG }}
fi

- name: Setup ccache
if: env.ENABLE_CCACHE == 'true'
uses: hendrikmuhs/[email protected]
with:
key: build-kernel-${{ env.DEVICE }}${{ env.UPLOADNAME }}
max-size: 2G

- name: Build kernel
run: |
cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel
export PATH=$GITHUB_WORKSPACE/kernel_workspace/clang-aosp/bin:$PATH
export KBUILD_BUILD_HOST=Github-Action
export KBUILD_BUILD_USER=$(echo ${{ github.actor }} | tr A-Z a-z)
make -j$(nproc --all) CC=clang O=out ARCH=${{ env.ARCH }} ${{ env.CUSTOM_CMDS }} ${{ env.EXTRA_CMDS }} ${{ env.GCC_64 }} ${{ env.GCC_32 }} ${{ env.KERNEL_CONFIG }}
if [ ${{ env.ENABLE_CCACHE }} = true ]; then
make -j$(nproc --all) CC="ccache clang" O=out ARCH=${{ env.ARCH }} ${{ env.CUSTOM_CMDS }} ${{ env.EXTRA_CMDS }} ${{ env.GCC_64 }} ${{ env.GCC_32 }}
else
make -j$(nproc --all) CC=clang O=out ARCH=${{ env.ARCH }} ${{ env.CUSTOM_CMDS }} ${{ env.EXTRA_CMDS }} ${{ env.GCC_64 }} ${{ env.GCC_32 }}
fi

- name: Check a kernel output files
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
if [ -f android-kernel/out/arch/${{ env.ARCH }}/boot/${{ env.KERNEL_IMAGE_NAME }} ]; then
echo "CHECK_FILE_IS_OK=true" >> $GITHUB_ENV
else
echo "Kernel output file is empty"
exit 1
fi
if [ ${{ env.NEED_DTBO }} = true ]; then
if [ -f android-kernel/out/arch/${{ env.ARCH }}/boot/dtbo.img ]; then
echo "CHECK_DTBO_IS_OK=true" >> $GITHUB_ENV
else
echo "DTBO image is empty"
exit 1
fi
fi

- name: Make Anykernel3
if: env.CHECK_FILE_IS_OK == 'true'
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
git clone https://github.com/osm0sis/AnyKernel3
sed -i 's/do.devicecheck=1/do.devicecheck=0/g' AnyKernel3/anykernel.sh
sed -i 's!block=/dev/block/platform/omap/omap_hsmmc.0/by-name/boot;!block=auto;!g' AnyKernel3/anykernel.sh
sed -i 's/is_slot_device=0;/is_slot_device=auto;/g' AnyKernel3/anykernel.sh
cp android-kernel/out/arch/${{ env.ARCH }}/boot/${{ env.KERNEL_IMAGE_NAME }} AnyKernel3/
if [ ${{ env.CHECK_DTBO_IS_OK }} = true ]; then
cp android-kernel/out/arch/${{ env.ARCH }}/boot/dtbo.img AnyKernel3/
fi
rm -rf AnyKernel3/.git* AnyKernel3/README.md

- name: Make boot image
if: env.HAVE_SOURCE_BOOT_IMAGE == 'true' && env.CHECK_FILE_IS_OK == 'true'
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
tools/unpack_bootimg.py --boot_img boot-source.img
cp android-kernel/out/arch/${{ env.ARCH }}/boot/${{ env.KERNEL_IMAGE_NAME }} out/kernel
tools/mkbootimg.py ${{ env.FORMAT_MKBOOTING }} -o boot.img
if [ -f boot.img ]; then
echo "MAKE_BOOT_IMAGE_IS_OK=true" >> $GITHUB_ENV
else
echo "Boot image is empty"
exit 1
fi

- name: Upload ${{ env.KERNEL_IMAGE_NAME }}
if: env.CHECK_FILE_IS_OK == 'true'
uses: actions/upload-artifact@v3
with:
name: ${{ env.KERNEL_IMAGE_NAME }}${{ env.UPLOADNAME }}-${{ env.DEVICE }}-${{ env.BUILD_TIME }}
path: kernel_workspace/android-kernel/out/arch/${{ env.ARCH }}/boot/${{ env.KERNEL_IMAGE_NAME }}

- name: Upload AnyKernel3
if: env.CHECK_FILE_IS_OK == 'true'
uses: actions/upload-artifact@v3
with:
name: MeteoricSU${{ env.UPLOADNAME }}-${{ env.BUILD_TIME }}
path: kernel_workspace/AnyKernel3/*

- name: Upload DTBO image
if: env.CHECK_DTBO_IS_OK == 'true'
uses: actions/upload-artifact@v3
with:
name: dtbo-${{ env.DEVICE }}-${{ env.BUILD_TIME }}
path: kernel_workspace/android-kernel/out/arch/${{ env.ARCH }}/boot/dtbo.img

- name: Upload boot image
if: env.MAKE_BOOT_IMAGE_IS_OK == 'true'
uses: actions/upload-artifact@v3
with:
name: boot${{ env.UPLOADNAME }}-${{ env.DEVICE }}-${{ env.BUILD_TIME }}
path: kernel_workspace/boot.img
Loading