Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions build-bpftool/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Test bpftool build'
description: 'Run test_bpftool_build.sh to exercise the various ways of building bpftool'
inputs:
kernel-root:
description: 'Path to the root of the kernel source tree'
required: true

runs:
using: "composite"
steps:
- name: Test bpftool build
shell: bash
run:
${GITHUB_ACTION_PATH}/build_bpftool.sh "${{ inputs.kernel-root }}"
env:
MAX_MAKE_JOBS: ${{ inputs.max-make-jobs }}
23 changes: 23 additions & 0 deletions build-bpftool/build_bpftool.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

set -euo pipefail

THISDIR="$(cd $(dirname $0) && pwd)"

source "${THISDIR}"/../helpers.sh

KERNEL_ROOT="$(realpath $1)"

foldable start build_bpftool "Testing bpftool build"

# The action builds everything in tools/bpf; that includes bpf_dbg, which
# depends on readline
sudo -E apt-get install --no-install-recommends -y \
libreadline-dev

cd "${KERNEL_ROOT}"

unset CROSS_COMPILE
bash tools/testing/selftests/bpf/test_bpftool_build.sh -j "$(kernel_build_make_jobs)"

foldable end build_bpftool
Loading