mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-22 01:09:06 +08:00
As discussed at some earlier point in time, some of the actions/workflow logic does not use our foldable helpers despite being able to. Switch them over. Signed-off-by: Daniel Müller <deso@posteo.net>
32 lines
942 B
YAML
32 lines
942 B
YAML
name: 'build-selftests'
|
|
description: 'Build BPF selftests'
|
|
inputs:
|
|
repo-path:
|
|
description: 'where is the source code'
|
|
required: true
|
|
kernel:
|
|
description: 'kernel version or LATEST'
|
|
required: true
|
|
default: 'LATEST'
|
|
vmlinux:
|
|
description: 'where is vmlinux file'
|
|
required: true
|
|
default: '${{ github.workspace }}/vmlinux'
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- shell: bash
|
|
run: |
|
|
source $GITHUB_ACTION_PATH/../../../ci/vmtest/helpers.sh
|
|
foldable start "Setup Env"
|
|
sudo apt-get install -y qemu-kvm zstd binutils-dev elfutils libcap-dev libelf-dev libdw-dev python3-docutils
|
|
foldable end
|
|
- shell: bash
|
|
run: |
|
|
export KERNEL=${{ inputs.kernel }}
|
|
export REPO_ROOT="${{ github.workspace }}"
|
|
export REPO_PATH="${{ inputs.repo-path }}"
|
|
export VMLINUX_BTF="${{ inputs.vmlinux }}"
|
|
${{ github.action_path }}/build_selftests.sh
|