-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.28 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: build
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: true
matrix:
device: [g34]
name: "🚧 Build for ${{matrix.device}}"
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: szenius/set-timezone@v2.0
with:
timezoneLinux: "Asia/Kolkata"
- name: Setup Toolchains
run: |
sudo apt update
sudo apt install bison flex libssl-dev libarchive-tools -y
mkdir -p toolchain
cd toolchain
echo 'Download antman and sync'
bash <(curl -s "https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman") -S=11032023
echo 'Done'
- name: Run build
run: |
DEVICE=${{matrix.device}} ./build.sh
- name: Upload kernel
uses: actions/upload-artifact@v4
with:
name: O_kernel-${{matrix.device}}_Clang_17
path: AnyKernel3/O*.zip
- name: Upload to Telegram
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
document: AnyKernel3/O*.zip
message: "Build COmpleted"