-
Notifications
You must be signed in to change notification settings - Fork 69
98 lines (89 loc) · 3.29 KB
/
kernel-build.yml
File metadata and controls
98 lines (89 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Kernel Test
on:
workflow_dispatch:
inputs:
build_ref:
description: 'Ref to build'
required: true
type: choice
options:
- linux-nvidia-6.6
- linux-nvidia-6.12
- linux-nvidia-6.18
workflow_call:
inputs:
build_ref:
description: 'Ref to build'
required: true
type: string
jobs:
build:
name: ${{ matrix.runs-on == 'ubuntu-latest' && 'x86_64' || 'ARM64' }} - ${{ matrix.config }}
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
include:
- runs-on: ubuntu-latest
config: defconfig
- runs-on: ubuntu-24.04-arm
config: config_4k
- runs-on: ubuntu-24.04-arm
config: config_64k
steps:
- name: Checkout kernel ref
uses: actions/checkout@v4
with:
ref: ${{ inputs.build_ref }}
fetch-depth: 0
- name: Fetch config files from github-actions branch
run: |
git fetch origin github-actions
git checkout origin/github-actions -- .github/workflows/config_4k .github/workflows/config_64k
- name: Install Dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y build-essential flex bison libssl-dev bc \
busybox-static cmake coreutils virtme-ng cpio elfutils file gcc \
git iproute2 jq kbd kmod libcap-dev libelf-dev libunwind-dev \
libvirt-clients libzstd-dev libasound2-dev libdrm-dev \
linux-headers-generic linux-tools-common linux-tools-generic \
make ninja-build pahole pkg-config python3-dev python3-pip \
python3-requests qemu-kvm qemu-system-arm rsync stress-ng udev zstd \
libseccomp-dev libcap-ng-dev llvm-19 clang-19 python3-full curl \
bpftrace dwarves gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu \
bash-completion ccache debhelper devscripts docbook-utils \
fakeroot gawk kernel-wedge libncurses5-dev makedumpfile python3-git \
python3-requests python3-ruamel.yaml sharutils transfig ubuntu-dev-tools \
libnuma-dev xmlto
- name: Install virtme-ng
run: |
git clone https://github.com/arighi/virtme-ng.git
cd virtme-ng
VNG_PACKAGE=1 BUILD_VIRTME_NG_INIT=1 pip install --break-system-packages .
cd -
- name: Configure Kernel
run: |
if [ "${{ matrix.config }}" = "defconfig" ]; then
vng -vb --kconfig
else
vng -vb --kconfig --config .github/workflows/${{ matrix.config }}
fi
# Ensure WERROR is disabled
./scripts/config --disable CONFIG_WERROR
# Disable certificate verification
./scripts/config --disable SYSTEM_TRUSTED_KEYS
./scripts/config --disable SYSTEM_REVOCATION_KEYS ""
- name: Build Kernel
run: |
vng -vb
- name: Boot test
run: |
vng -v -m 4G -- uname -a
- name: Run kselftests
run: |
make headers_install
make -j$(nproc) -C tools/testing/selftests \
TARGETS="mm dma iommu locking" \
INSTALL_PATH=$(pwd)/tests \
all install
vng -v -m 4G -- ./tests/run_kselftest.sh --summary