Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
y82t2z committed Nov 26, 2024
1 parent 4f231de commit c66a06b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
repository: y82t2z/AnyKernel3
path: AnyKernel3
- name: Download Tool
run: sudo apt install libarchive-tools build-essential libncurses-dev bison flex libssl-dev binutils python2
run: sudo apt update && sudo apt install libarchive-tools build-essential libncurses-dev bison flex libssl-dev binutils python2

- name: Download Clang
run: |
Expand Down
43 changes: 43 additions & 0 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/env bash

BASE_DIR="$PWD"
cd kernel
KERNEL_DIR="$PWD"
AK3_DIR=$BASE_DIR/AnyKernel3

[[ ! -d "$AK3_DIR" ]] && echo -e "(X) Please Provide AnyKernel3 !" && exit
export PATH="$BASE_DIR/clang/bin:$PATH" &&
export PATH="../clang/bin:$PATH"
TC="Zyc Clang"
TARGET=alioth
CODENAME=POCO-F3
KERNEL_NAME=ALIOTH

K_IMG=$KERNEL_DIR/out/arch/arm64/boot/Image
K_DTBO=$KERNEL_DIR/out/arch/arm64/boot/dtbo.img
K_DTB=$KERNEL_DIR/out/arch/arm64/boot/dtb

export ARCH=arm64
export SUBARCH=arm64
export KBUILD_BUILD_USER=y82t2z
export KBUILD_BUILD_HOST=Neko-CI
export TZ=Asia/Bangkok

send_msg(){
curl -s -X POST \
https://api.telegram.org/bot"$TOKEN"/sendMessage \
-d chat_id="$CHATID" \
-d text="$1" \
-d "parse_mode=html" \
-d "disable_web_page_preview=true"
}

send_file(){
curl -s -X POST \
https://api.telegram.org/bot"$TOKEN"/sendDocument \
-F chat_id="$CHATID" \
-F document=@"$1" \
-F caption="$2" \
-F "parse_mode=html" \
-F "disable_web_page_preview=true"
}

0 comments on commit c66a06b

Please sign in to comment.