ci: add github action #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Kernel Test | |
| on: | |
| push: | |
| branches: [ "*" ] | |
| pull_request: | |
| jobs: | |
| build-kernel: | |
| runs-on: ubuntu-24.04 | |
| name: Kernel Build | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install -y build-essential flex bison libssl-dev bc \ | |
| bison 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 \ | |
| 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 | |
| - name: Install virtme-ng | |
| run: pip install --break-system-packages virtme-ng | |
| - name: Build kernel | |
| run: vng -vb --arch arm64 CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 | |
| - name: Run kernel | |
| run: vng --arch arm64 --root ./arm64 -v -- uname -a |