From 42b19c7e2ca2e302b980c12d695aef2d4ed57de6 Mon Sep 17 00:00:00 2001 From: reocat <111279389+reocat@users.noreply.github.com> Date: Fri, 5 Jan 2024 22:56:04 +0300 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f10d80341e22..4e1b1f3a75fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,10 +38,13 @@ jobs: sudo apt install gcc-arm-linux-gnueabi -y sudo apt install binutils make python3 libssl-dev build-essential bc bison flex unzip libssl-dev ca-certificates xz-utils mkbootimg cpio device-tree-compiler git git-lfs -y wget $(curl -fsSL https://github.com/ZyCromerZ/Clang/raw/main/Clang-main-link.txt) - tar -xzvf Clang-*.tar.gz - git clone https://github.com/kdrag0n/proton-clang --dept=1 -b master - git clone https://github.com/Coconutat/AnyKernel3_Backup -b Op6_KSU --depth=1 - rm -rf AnyKernel3/.git + mkdir zyc-clang + tar -xzvf Clang-*.tar.gz -C zyc-clang + 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 + rm -rf AnyKernel3/.git* AnyKernel3/README.md - name: GetTime id: get_time @@ -50,13 +53,13 @@ jobs: - name: Build Kernel-With-KernelSU run: | - export PATH=$(pwd)/proton-clang/bin/:$PATH + export PATH=$(pwd)/zyc-clang/bin/:$PATH make $KERNEL_CMDLINE $KERNEL_DEFCONFIG CC="ccache clang" make $KERNEL_CMDLINE CC="ccache clang" -j$(nproc --all) - cp out/arch/arm64/boot/Image.gz-dtb AnyKernel3_Backup + cp out/arch/arm64/boot/Image.gz-dtb AnyKernel3 - name: Upload Kernel-SU uses: actions/upload-artifact@v3 with: name: Nyan_kernel-KSU-${{ steps.get_time.outputs.TIME }} - path: "AnyKernel3_Backup/*" + path: "AnyKernel3/*"