ci: update kernel build, remove embed ksud (#159)
This commit is contained in:
6
.github/workflows/build-kernel-a12.yml
vendored
6
.github/workflows/build-kernel-a12.yml
vendored
@@ -17,12 +17,7 @@ on:
|
|||||||
- "kernel/**"
|
- "kernel/**"
|
||||||
- "userspace/ksud/**"
|
- "userspace/ksud/**"
|
||||||
jobs:
|
jobs:
|
||||||
build-ksud:
|
|
||||||
uses: ./.github/workflows/ksud.yml
|
|
||||||
with:
|
|
||||||
target: aarch64-linux-android
|
|
||||||
build-kernel:
|
build-kernel:
|
||||||
needs: build-ksud
|
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -104,7 +99,6 @@ jobs:
|
|||||||
bash $GITHUB_WORKSPACE/KernelSU/.github/scripts/build_a12.sh
|
bash $GITHUB_WORKSPACE/KernelSU/.github/scripts/build_a12.sh
|
||||||
|
|
||||||
check-build-kernel:
|
check-build-kernel:
|
||||||
needs: build-ksud
|
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: ./.github/workflows/gki-kernel.yml
|
uses: ./.github/workflows/gki-kernel.yml
|
||||||
with:
|
with:
|
||||||
|
|||||||
9
.github/workflows/build-kernel-a13.yml
vendored
9
.github/workflows/build-kernel-a13.yml
vendored
@@ -17,12 +17,7 @@ on:
|
|||||||
- "kernel/**"
|
- "kernel/**"
|
||||||
- "userspace/ksud/**"
|
- "userspace/ksud/**"
|
||||||
jobs:
|
jobs:
|
||||||
build-ksud:
|
|
||||||
uses: ./.github/workflows/ksud.yml
|
|
||||||
with:
|
|
||||||
target: aarch64-linux-android
|
|
||||||
build-kernel:
|
build-kernel:
|
||||||
needs: build-ksud
|
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -102,7 +97,6 @@ jobs:
|
|||||||
bash $GITHUB_WORKSPACE/KernelSU/.github/scripts/build_a13.sh
|
bash $GITHUB_WORKSPACE/KernelSU/.github/scripts/build_a13.sh
|
||||||
|
|
||||||
check-build-kernel:
|
check-build-kernel:
|
||||||
needs: build-ksud
|
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -110,6 +104,9 @@ jobs:
|
|||||||
- version: "5.10"
|
- version: "5.10"
|
||||||
sub_level: 107
|
sub_level: 107
|
||||||
os_patch_level: 2022-11
|
os_patch_level: 2022-11
|
||||||
|
- version: "5.10"
|
||||||
|
sub_level: 149
|
||||||
|
os_patch_level: 2023-01
|
||||||
- version: "5.15"
|
- version: "5.15"
|
||||||
sub_level: 41
|
sub_level: 41
|
||||||
os_patch_level: 2022-11
|
os_patch_level: 2022-11
|
||||||
|
|||||||
18
.github/workflows/gki-kernel.yml
vendored
18
.github/workflows/gki-kernel.yml
vendored
@@ -96,12 +96,6 @@ jobs:
|
|||||||
../git-repo/repo init --depth=1 --u https://android.googlesource.com/kernel/manifest -b common-${{ inputs.tag }}
|
../git-repo/repo init --depth=1 --u https://android.googlesource.com/kernel/manifest -b common-${{ inputs.tag }}
|
||||||
../git-repo/repo sync -j$(nproc --all)
|
../git-repo/repo sync -j$(nproc --all)
|
||||||
|
|
||||||
- name: Download prebuilt ksud from artifacts
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: ${{ inputs.embed_ksud }}
|
|
||||||
path: .
|
|
||||||
|
|
||||||
- name: Setup KernelSU
|
- name: Setup KernelSU
|
||||||
env:
|
env:
|
||||||
PATCH_PATH: ${{ inputs.patch_path }}
|
PATCH_PATH: ${{ inputs.patch_path }}
|
||||||
@@ -117,9 +111,6 @@ jobs:
|
|||||||
grep -q "kernelsu" $DRIVER_MAKEFILE || echo "obj-y += kernelsu/" >> $DRIVER_MAKEFILE
|
grep -q "kernelsu" $DRIVER_MAKEFILE || echo "obj-y += kernelsu/" >> $DRIVER_MAKEFILE
|
||||||
echo "[+] Apply KernelSU patches"
|
echo "[+] Apply KernelSU patches"
|
||||||
cd $GKI_ROOT/common/ && git apply $GITHUB_WORKSPACE/KernelSU/.github/patches/$PATCH_PATH/*.patch
|
cd $GKI_ROOT/common/ && git apply $GITHUB_WORKSPACE/KernelSU/.github/patches/$PATCH_PATH/*.patch
|
||||||
cd $GITHUB_WORKSPACE
|
|
||||||
echo "[+] Build embed_ksud.c"
|
|
||||||
python3 ./KernelSU/scripts/bin2c.py ./aarch64-linux-android/release/ksud ksud > ./KernelSU/kernel/embed_ksud.c
|
|
||||||
echo "[+] KernelSU setup done."
|
echo "[+] KernelSU setup done."
|
||||||
|
|
||||||
- name: Symbol magic
|
- name: Symbol magic
|
||||||
@@ -144,9 +135,18 @@ jobs:
|
|||||||
mkdir output
|
mkdir output
|
||||||
cp $OUTDIR/Image ./output/
|
cp $OUTDIR/Image ./output/
|
||||||
cp $OUTDIR/Image.lz4 ./output/
|
cp $OUTDIR/Image.lz4 ./output/
|
||||||
|
git clone https://github.com/Kernel-SU/AnyKernel3
|
||||||
|
rm -rf ./AnyKernel3/.git
|
||||||
|
cp $OUTDIR/Image ./AnyKernel3/
|
||||||
|
|
||||||
- name: Upload Image and Image.gz
|
- name: Upload Image and Image.gz
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Image-${{ inputs.version_name }}_${{ inputs.os_patch_level }}
|
name: Image-${{ inputs.version_name }}_${{ inputs.os_patch_level }}
|
||||||
path: ./output/*
|
path: ./output/*
|
||||||
|
|
||||||
|
- name: Upload AnyKernel3
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: AnyKernel3-${{ inputs.version_name }}_${{ inputs.os_patch_level }}
|
||||||
|
path: ./AnyKernel3/*
|
||||||
9
.github/workflows/ksud.yml
vendored
9
.github/workflows/ksud.yml
vendored
@@ -28,15 +28,6 @@ jobs:
|
|||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-cargo-
|
restore-keys: ${{ runner.os }}-cargo-
|
||||||
|
|
||||||
- name: Set up ksud build cache
|
|
||||||
if: inputs.use_cache == true
|
|
||||||
uses: actions/cache@v3
|
|
||||||
continue-on-error: false
|
|
||||||
with:
|
|
||||||
path: ./userspace/ksud/target/
|
|
||||||
key: ${{ runner.os }}-ksud-${{ hashFiles('**/Cargo.lock') }}-${{ inputs.target }}
|
|
||||||
restore-keys: ${{ runner.os }}-ksud-
|
|
||||||
|
|
||||||
- name: Build ksud
|
- name: Build ksud
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user