ci: use libbpf/ci/run-vmtest action to run selftests

Signed-off-by: Ihor Solodrai <ihor.solodrai@pm.me>
This commit is contained in:
Ihor Solodrai
2024-11-01 13:02:32 -07:00
committed by Andrii Nakryiko
parent 244485ce72
commit 779cb2b65b
2 changed files with 8 additions and 18 deletions

View File

@@ -99,26 +99,14 @@ runs:
repo-path: '.kernel'
kernel: ${{ inputs.kernel }}
llvm-version: ${{ inputs.llvm-version }}
# 4. prepare rootfs
- name: prepare rootfs
uses: libbpf/ci/prepare-rootfs@main
env:
KBUILD_OUTPUT: '.kernel'
with:
project-name: 'libbpf'
arch: ${{ inputs.arch }}
kernel: ${{ inputs.kernel }}
kernel-root: '.kernel'
kbuild-output: ${{ env.KBUILD_OUTPUT }}
image-output: '/tmp/root.img'
# 5. run selftest in QEMU
# 4. Run selftest via vmtest tool (https://github.com/danobi/vmtest)
- name: Run selftests
env:
KERNEL: ${{ inputs.kernel }}
REPO_ROOT: ${{ github.workspace }}
uses: libbpf/ci/run-qemu@main
uses: theihor/libbpf-ci/run-vmtest@run-vmtest-v2
with:
arch: ${{ inputs.arch }}
img: '/tmp/root.img'
vmlinuz: 'vmlinuz'
kernel-root: '.kernel'
kbuild-output: ${{ github.workspace }}/.kernel
kernel-root: ${{ github.workspace }}/.kernel
img: '' # this is a required action input currently, but actually is not used
vmlinuz: ${{ github.workspace }}/vmlinux

View File

@@ -28,6 +28,8 @@ jobs:
name: Setup
- uses: ./.github/actions/vmtest
name: vmtest
continue-on-error: false
timeout-minutes: 180
with:
kernel: ${{ matrix.kernel }}
arch: ${{ matrix.arch }}