Skip to content

Commit 6951166

Browse files
committed
added ci cd
1 parent 8f19795 commit 6951166

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Kernel CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build-only:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Code
15+
uses: actions/checkout@v3
16+
17+
- name: Install Dependencies
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y build-essential cmake python3
21+
sudo apt-get install -y gcc-riscv64-unknown-elf
22+
23+
- name: Make Scripts Executable
24+
run: |
25+
chmod +x build.sh clean.sh
26+
chmod +x scripts/*.sh
27+
28+
- name: Build Kernel
29+
run: |
30+
./clean.sh
31+
./build.sh

0 commit comments

Comments
 (0)