Skip to content

Commit

Permalink
Merge branch 'libbpf:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoftsm authored Sep 4, 2024
2 parents 6923eb9 + caa17bd commit 057f85d
Show file tree
Hide file tree
Showing 18 changed files with 2,540 additions and 1,334 deletions.
5 changes: 5 additions & 0 deletions .github/actions/build-selftests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ inputs:
description: 'where is vmlinux file'
required: true
default: '${{ github.workspace }}/vmlinux'
llvm-version:
description: 'llvm version'
required: true

runs:
using: "composite"
Expand All @@ -28,4 +31,6 @@ runs:
export REPO_ROOT="${{ github.workspace }}"
export REPO_PATH="${{ inputs.repo-path }}"
export VMLINUX_BTF="${{ inputs.vmlinux }}"
export LLVM_VERSION="${{ inputs.llvm-version }}"
${{ github.action_path }}/build_selftests.sh
13 changes: 6 additions & 7 deletions .github/actions/build-selftests/build_selftests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@ foldable start prepare_selftests "Building selftests"

LIBBPF_PATH="${REPO_ROOT}"

llvm_default_version() {
echo "16"
}

llvm_latest_version() {
echo "17"
echo "19"
}

LLVM_VERSION=$(llvm_default_version)
if [[ "${LLVM_VERSION}" == $(llvm_latest_version) ]]; then
REPO_DISTRO_SUFFIX=""
else
REPO_DISTRO_SUFFIX="-${LLVM_VERSION}"
fi

echo "deb https://apt.llvm.org/focal/ llvm-toolchain-focal${REPO_DISTRO_SUFFIX} main" \
DISTRIB_CODENAME="noble"
test -f /etc/lsb-release && . /etc/lsb-release
echo "${DISTRIB_CODENAME}"

echo "deb https://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}${REPO_DISTRO_SUFFIX} main" \
| sudo tee /etc/apt/sources.list.d/llvm.list

PREPARE_SELFTESTS_SCRIPT=${THISDIR}/prepare_selftests-${KERNEL}.sh
Expand Down
Loading

0 comments on commit 057f85d

Please sign in to comment.