-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (42 loc) · 1.39 KB
/
build_stable.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
name: build_stable (KSU)
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
device: [m21, m31, m31s, f41]
ksu: [1]
old: [0, 1]
name: "🚧 Build for ${{matrix.device}} KSU=${{matrix.ksu}} OLD=${{matrix.old}}"
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: szenius/[email protected]
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=05012024
echo 'Patch for glibc'
bash <(curl -s "https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman") --patch=glibc
echo 'Done'
- name: Run build
run: |
DEVICE=${{matrix.device}} KSU=${{matrix.ksu}} OLD=${{matrix.old}} ./build.sh
- name: Upload to Telegram
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
document: AnyKernel3/N*.zip
message: "Build COmpleted"