Skip to content

Commit cc4bc9f

Browse files
committed
Import github actions workflow
Signed-off-by: Yahya Wessam <yahyawessam2002@gmail.com>
1 parent 38e716b commit cc4bc9f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/compile.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Compiling kernel
2+
3+
on:
4+
push:
5+
branches:
6+
- "*-buildout"
7+
8+
jobs:
9+
compile:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout current repo
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 1
17+
submodules: recursive
18+
19+
- name: Convert submodules to full depth
20+
run: git submodule foreach --recursive 'git fetch --unshallow || true'
21+
22+
- name: Set up dependencies
23+
run: |
24+
sudo apt update
25+
sudo apt install bc build-essential bison flex zip gcc clang libc6 curl libstdc++6 git wget libssl-dev zstd lld python3 -y
26+
27+
- name: Setup Telegram bot and compile the kernel
28+
env:
29+
TELEGRAM_TOKEN: ${{ secrets.tg_token }}
30+
TELEGRAM_CHAT: ${{ secrets.tg_chat }}
31+
run: |
32+
wget https://raw.githubusercontent.com/fabianonline/telegram.sh/refs/heads/master/telegram
33+
chmod +x ./telegram
34+
bash build.sh

0 commit comments

Comments
 (0)