Skip to content

Commit 4f2317c

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

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/kernel-build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Kernel Build
2+
3+
on:
4+
push:
5+
branches: [ "*" ]
6+
pull_request:
7+
8+
jobs:
9+
build-kernel:
10+
runs-on: ubuntu-latest
11+
name: Build Kernel on ARM64 (Ubuntu 24.04)
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: Run build in Ubuntu 24.04 ARM64 container
23+
uses: addnab/docker-run-action@v3
24+
with:
25+
image: arm64v8/ubuntu:24.04
26+
options: --platform linux/arm64
27+
run: |
28+
apt-get update
29+
apt-get install -y build-essential flex bison libssl-dev bc
30+
uname -a
31+
echo "Building kernel on Ubuntu 24.04 (ARM64)"
32+
# TODO

.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)