summaryrefslogtreecommitdiffstats
path: root/lib/libbpf/.github/actions/build-selftests/action.yml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libbpf/.github/actions/build-selftests/action.yml')
-rw-r--r--lib/libbpf/.github/actions/build-selftests/action.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/libbpf/.github/actions/build-selftests/action.yml b/lib/libbpf/.github/actions/build-selftests/action.yml
new file mode 100644
index 0000000..af7981b
--- /dev/null
+++ b/lib/libbpf/.github/actions/build-selftests/action.yml
@@ -0,0 +1,30 @@
+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: |
+ echo "::group::Setup Env"
+ sudo apt-get install -y qemu-kvm zstd binutils-dev elfutils libcap-dev libelf-dev libdw-dev python3-docutils
+ echo "::endgroup::"
+ - 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