Skip to content

Commit 9e81330

Browse files
committed
ci: add github action
Signed-off-by: Andrea Righi <arighi@nvidia.com>
1 parent b196f0a commit 9e81330

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/kernel-build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Kernel Test
2+
3+
on:
4+
push:
5+
branches: [ "*" ]
6+
pull_request:
7+
8+
jobs:
9+
build-kernel:
10+
runs-on: ubuntu-24.04
11+
name: Kernel Build
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Install dependencies
17+
run: |
18+
sudo apt-get update -y
19+
sudo apt-get install -y build-essential flex bison libssl-dev bc \
20+
bison busybox-static cmake coreutils virtme-ng \
21+
cpio elfutils file gcc git iproute2 jq kbd kmod libcap-dev \
22+
libelf-dev libunwind-dev libvirt-clients libzstd-dev libasound2-dev \
23+
libdrm-dev linux-headers-generic linux-tools-common linux-tools-generic \
24+
make ninja-build pahole pkg-config python3-dev python3-pip \
25+
python3-requests qemu-kvm qemu-system-arm rsync stress-ng udev zstd \
26+
libseccomp-dev libcap-ng-dev llvm-19 clang-19 python3-full curl \
27+
bpftrace dwarves gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
28+
29+
- name: Install virtme-ng
30+
run: pip install --break-system-packages virtme-ng
31+
32+
- name: Build kernel
33+
run: vng -vb --arch arm64 CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64
34+
35+
- name: Build kselftest
36+
run: make -C tools/testing/selftests CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64
37+
38+
- name: Boot test
39+
run: vng --arch arm64 --root ./arm64 -v -- uname -a

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# Normal rules (sorted alphabetically)
1212
#
1313
.*
14+
!.github/
1415
*.a
1516
*.asn1.[ch]
1617
*.bin

0 commit comments

Comments
 (0)