mirror of
https://github.com/Dichgrem/GKI-build.git
synced 2025-12-17 22:22:00 -05:00
style:name
This commit is contained in:
33
.github/workflows/build-gki-kernel.yml
vendored
33
.github/workflows/build-gki-kernel.yml
vendored
@@ -9,10 +9,18 @@ on:
|
|||||||
default: "false"
|
default: "false"
|
||||||
type: boolean
|
type: boolean
|
||||||
enable_susfs:
|
enable_susfs:
|
||||||
description: "Enable susfs support"
|
description: "Enable SUSFS support"
|
||||||
required: false
|
required: false
|
||||||
default: "false"
|
default: "false"
|
||||||
type: boolean
|
type: boolean
|
||||||
|
lto_solution:
|
||||||
|
description: "Select the level of lto"
|
||||||
|
required: false
|
||||||
|
default: "thin"
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- thin
|
||||||
|
- full
|
||||||
root_solution:
|
root_solution:
|
||||||
description: "Choose root solution to integrate"
|
description: "Choose root solution to integrate"
|
||||||
required: false
|
required: false
|
||||||
@@ -23,19 +31,6 @@ on:
|
|||||||
- kernelsu
|
- kernelsu
|
||||||
- kernelsu-next
|
- kernelsu-next
|
||||||
- none
|
- none
|
||||||
lto_solution:
|
|
||||||
description: "Select the level of lto"
|
|
||||||
required: false
|
|
||||||
default: "thin"
|
|
||||||
type: choice
|
|
||||||
options:
|
|
||||||
- thin
|
|
||||||
- full
|
|
||||||
kernel_name:
|
|
||||||
description: "Custom kernel name (optional)"
|
|
||||||
required: false
|
|
||||||
default: "GKI"
|
|
||||||
type: string
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-kernel:
|
build-kernel:
|
||||||
@@ -59,7 +54,7 @@ jobs:
|
|||||||
pahole dwarves zip gcc g++
|
pahole dwarves zip gcc g++
|
||||||
gcc --version
|
gcc --version
|
||||||
|
|
||||||
- name: Setup toolchains & directories
|
- name: Setup clang toolchains
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
echo "WORKDIR=$WORKDIR"
|
echo "WORKDIR=$WORKDIR"
|
||||||
@@ -84,7 +79,7 @@ jobs:
|
|||||||
|
|
||||||
echo "✅ Setup toolchains -> OK"
|
echo "✅ Setup toolchains -> OK"
|
||||||
|
|
||||||
- name: Setup & Clone Kernel
|
- name: Clone & Setup Kernel
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
mkdir -p "$WORKDIR"
|
mkdir -p "$WORKDIR"
|
||||||
@@ -108,7 +103,7 @@ jobs:
|
|||||||
# 设置 KERNEL_DIR 环境变量
|
# 设置 KERNEL_DIR 环境变量
|
||||||
echo "KERNEL_DIR=android_kernel_oneplus_sm8650" >> $GITHUB_ENV
|
echo "KERNEL_DIR=android_kernel_oneplus_sm8650" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Copy and configure kernel config
|
- name: Copy and configure config
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
echo "WORKDIR=$WORKDIR"
|
echo "WORKDIR=$WORKDIR"
|
||||||
@@ -163,7 +158,7 @@ jobs:
|
|||||||
echo "⏩ Skipping BBR support (disabled)"
|
echo "⏩ Skipping BBR support (disabled)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install root solution
|
- name: Install Root solution
|
||||||
run: |
|
run: |
|
||||||
cd "$WORKDIR/$KERNEL_DIR"
|
cd "$WORKDIR/$KERNEL_DIR"
|
||||||
export KCONFIG_CONFIG="$PWD/arch/arm64/configs/config_defconfig"
|
export KCONFIG_CONFIG="$PWD/arch/arm64/configs/config_defconfig"
|
||||||
@@ -196,7 +191,7 @@ jobs:
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
- name: Apply Susfs patches
|
- name: Apply SUSFS patches
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.enable_susfs }}" = "true" ]; then
|
if [ "${{ inputs.enable_susfs }}" = "true" ]; then
|
||||||
cd $GITHUB_WORKSPACE/kernel/android_kernel_oneplus_sm8650
|
cd $GITHUB_WORKSPACE/kernel/android_kernel_oneplus_sm8650
|
||||||
|
|||||||
Reference in New Issue
Block a user