Skip to content

Commit

Permalink
ci: some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Mar 11, 2024
1 parent 58ecff6 commit 10d49e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-kernel-a13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ jobs:
- version: "5.10"
sub_level: 189
os_patch_level: 2023-10
- version: "5.15"
sub_level: 123
os_patch_level: 2023-10
- version: "5.15"
sub_level: 123
os_patch_level: 2023-10
Expand Down
27 changes: 9 additions & 18 deletions .github/workflows/gki-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,31 +167,22 @@ jobs:
cd common/ && git add -A && git commit -a -m "Add KernelSU"
repo status
- name: Build boot.img
- name: Build Kernel/LKM
working-directory: android-kernel
env:
BUILD_LKM: ${{ inputs.build_lkm }}
run: |
if [ ! -z ${{ vars.EXPECTED_SIZE }} ] && [ ! -z ${{ vars.EXPECTED_HASH }} ]; then
export KSU_EXPECTED_SIZE=${{ vars.EXPECTED_SIZE }}
export KSU_EXPECTED_HASH=${{ vars.EXPECTED_HASH }}
fi
if [ -e build/build.sh ]; then
LTO=thin BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh CC="/usr/bin/ccache clang"
else
tools/bazel run --disk_cache=/home/runner/.cache/bazel --config=fast --config=stamp --lto=thin //common:kernel_aarch64_dist -- --dist_dir=dist
echo "BUILD LMK: $BUILD_LKM"
if [ "$BUILD_LKM" = "true" ]; then
cargo install ast-grep
ast-grep -U -p '$$$ check_exports($$$) {$$$}' -r '' common/scripts/mod/modpost.c
ast-grep -U -p 'check_exports($$$);' -r '' common/scripts/mod/modpost.c
sed -i '1i KSU_MODULE := 1' KernelSU/kernel/Makefile
fi
- name: Build kernelsu.ko
working-directory: android-kernel
if: ${{ inputs.build_lkm }}
run: |
if [ ! -z ${{ vars.EXPECTED_SIZE }} ] && [ ! -z ${{ vars.EXPECTED_HASH }} ]; then
export KSU_EXPECTED_SIZE=${{ vars.EXPECTED_SIZE }}
export KSU_EXPECTED_HASH=${{ vars.EXPECTED_HASH }}
fi
cargo install ast-grep
ast-grep -U -p '$$$ check_exports($$$) {$$$}' -r '' android-kernel/common/scripts/mod/modpost.c
ast-grep -U -p 'check_exports($$$);' -r '' android-kernel/common/scripts/mod/modpost.c
sed -i '1i KSU_MODULE := 1' android-kernel/KernelSU/kernel/Makefile
if [ -e build/build.sh ]; then
LTO=thin BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh CC="/usr/bin/ccache clang"
else
Expand Down

0 comments on commit 10d49e9

Please sign in to comment.