mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-03 23:29:06 +08:00
ci: use libbpf/ci/run-vmtest action to run selftests
Signed-off-by: Ihor Solodrai <ihor.solodrai@pm.me>
This commit is contained in:
committed by
Andrii Nakryiko
parent
244485ce72
commit
779cb2b65b
24
.github/actions/vmtest/action.yml
vendored
24
.github/actions/vmtest/action.yml
vendored
@@ -99,26 +99,14 @@ runs:
|
|||||||
repo-path: '.kernel'
|
repo-path: '.kernel'
|
||||||
kernel: ${{ inputs.kernel }}
|
kernel: ${{ inputs.kernel }}
|
||||||
llvm-version: ${{ inputs.llvm-version }}
|
llvm-version: ${{ inputs.llvm-version }}
|
||||||
# 4. prepare rootfs
|
# 4. Run selftest via vmtest tool (https://github.com/danobi/vmtest)
|
||||||
- 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
|
|
||||||
- name: Run selftests
|
- name: Run selftests
|
||||||
env:
|
env:
|
||||||
KERNEL: ${{ inputs.kernel }}
|
KERNEL: ${{ inputs.kernel }}
|
||||||
REPO_ROOT: ${{ github.workspace }}
|
uses: theihor/libbpf-ci/run-vmtest@run-vmtest-v2
|
||||||
uses: libbpf/ci/run-qemu@main
|
|
||||||
with:
|
with:
|
||||||
arch: ${{ inputs.arch }}
|
arch: ${{ inputs.arch }}
|
||||||
img: '/tmp/root.img'
|
kbuild-output: ${{ github.workspace }}/.kernel
|
||||||
vmlinuz: 'vmlinuz'
|
kernel-root: ${{ github.workspace }}/.kernel
|
||||||
kernel-root: '.kernel'
|
img: '' # this is a required action input currently, but actually is not used
|
||||||
|
vmlinuz: ${{ github.workspace }}/vmlinux
|
||||||
|
|||||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -28,6 +28,8 @@ jobs:
|
|||||||
name: Setup
|
name: Setup
|
||||||
- uses: ./.github/actions/vmtest
|
- uses: ./.github/actions/vmtest
|
||||||
name: vmtest
|
name: vmtest
|
||||||
|
continue-on-error: false
|
||||||
|
timeout-minutes: 180
|
||||||
with:
|
with:
|
||||||
kernel: ${{ matrix.kernel }}
|
kernel: ${{ matrix.kernel }}
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
|
|||||||
Reference in New Issue
Block a user