Skip to content

Commit 2227dd4

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

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/kernel-build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Kernel Test
2+
3+
on:
4+
push:
5+
branches: [ "*" ]
6+
pull_request:
7+
8+
jobs:
9+
build-kernel:
10+
runs-on: ubuntu-latest
11+
name: Test Kernel on ARM64
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up QEMU for ARM64 emulation
17+
uses: docker/setup-qemu-action@v3
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Install dependencies
23+
uses: addnab/docker-run-action@v3
24+
with:
25+
image: arm64v8/ubuntu:24.04
26+
options: --platform linux/arm64
27+
run: |
28+
echo "==> Update and install build dependencies"
29+
apt-get update -y
30+
apt-get install -y build-essential flex bison libssl-dev bc \
31+
bison busybox-static cmake coreutils virtme-ng \
32+
cpio elfutils file gcc git iproute2 jq kbd kmod libcap-dev \
33+
libelf-dev libunwind-dev libvirt-clients libzstd-dev \
34+
linux-headers-generic linux-tools-common linux-tools-generic \
35+
make ninja-build pahole pkg-config python3-dev python3-pip \
36+
python3-requests qemu-kvm rsync stress-ng udev zstd \
37+
libseccomp-dev libcap-ng-dev llvm-19 clang-19 python3-full curl \
38+
bpftrace dwarves
39+
40+
echo "==> Install latest virtme-ng via pip"
41+
pip install --break-system-packages virtme-ng
42+
43+
echo "==> Build kernel using virtme-ng"
44+
vng -vb
45+
46+
echo "==> Boot kernel and run uname"
47+
vng -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)