mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-12 03:29:06 +08:00
ci: Pass llvm-version as an input and enforce passing it to build-selftests action
Signed-off-by: Manu Bretelle <chantr4@gmail.com>
This commit is contained in:
5
.github/actions/build-selftests/action.yml
vendored
5
.github/actions/build-selftests/action.yml
vendored
@@ -12,6 +12,9 @@ inputs:
|
|||||||
description: 'where is vmlinux file'
|
description: 'where is vmlinux file'
|
||||||
required: true
|
required: true
|
||||||
default: '${{ github.workspace }}/vmlinux'
|
default: '${{ github.workspace }}/vmlinux'
|
||||||
|
llvm-version:
|
||||||
|
description: 'llvm version'
|
||||||
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@@ -28,4 +31,6 @@ runs:
|
|||||||
export REPO_ROOT="${{ github.workspace }}"
|
export REPO_ROOT="${{ github.workspace }}"
|
||||||
export REPO_PATH="${{ inputs.repo-path }}"
|
export REPO_PATH="${{ inputs.repo-path }}"
|
||||||
export VMLINUX_BTF="${{ inputs.vmlinux }}"
|
export VMLINUX_BTF="${{ inputs.vmlinux }}"
|
||||||
|
export LLVM_VERSION="${{ inputs.llvm-version }}"
|
||||||
|
|
||||||
${{ github.action_path }}/build_selftests.sh
|
${{ github.action_path }}/build_selftests.sh
|
||||||
|
|||||||
@@ -10,15 +10,10 @@ foldable start prepare_selftests "Building selftests"
|
|||||||
|
|
||||||
LIBBPF_PATH="${REPO_ROOT}"
|
LIBBPF_PATH="${REPO_ROOT}"
|
||||||
|
|
||||||
llvm_default_version() {
|
|
||||||
echo "17"
|
|
||||||
}
|
|
||||||
|
|
||||||
llvm_latest_version() {
|
llvm_latest_version() {
|
||||||
echo "19"
|
echo "19"
|
||||||
}
|
}
|
||||||
|
|
||||||
LLVM_VERSION=$(llvm_default_version)
|
|
||||||
if [[ "${LLVM_VERSION}" == $(llvm_latest_version) ]]; then
|
if [[ "${LLVM_VERSION}" == $(llvm_latest_version) ]]; then
|
||||||
REPO_DISTRO_SUFFIX=""
|
REPO_DISTRO_SUFFIX=""
|
||||||
else
|
else
|
||||||
|
|||||||
6
.github/actions/vmtest/action.yml
vendored
6
.github/actions/vmtest/action.yml
vendored
@@ -13,6 +13,10 @@ inputs:
|
|||||||
description: 'pahole rev or master'
|
description: 'pahole rev or master'
|
||||||
required: true
|
required: true
|
||||||
default: 'master'
|
default: 'master'
|
||||||
|
llvm-version:
|
||||||
|
description: 'llvm version'
|
||||||
|
required: false
|
||||||
|
default: '17'
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
@@ -38,6 +42,7 @@ runs:
|
|||||||
with:
|
with:
|
||||||
pahole: ${{ inputs.pahole }}
|
pahole: ${{ inputs.pahole }}
|
||||||
arch: ${{ inputs.arch }}
|
arch: ${{ inputs.arch }}
|
||||||
|
llvm-version: ${{ inputs.llvm-version }}
|
||||||
# 1. download CHECKPOINT kernel source
|
# 1. download CHECKPOINT kernel source
|
||||||
- name: Get checkpoint commit
|
- name: Get checkpoint commit
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -93,6 +98,7 @@ runs:
|
|||||||
with:
|
with:
|
||||||
repo-path: '.kernel'
|
repo-path: '.kernel'
|
||||||
kernel: ${{ inputs.kernel }}
|
kernel: ${{ inputs.kernel }}
|
||||||
|
llvm-version: ${{ inputs.llvm-version }}
|
||||||
# 4. prepare rootfs
|
# 4. prepare rootfs
|
||||||
- name: prepare rootfs
|
- name: prepare rootfs
|
||||||
uses: libbpf/ci/prepare-rootfs@main
|
uses: libbpf/ci/prepare-rootfs@main
|
||||||
|
|||||||
Reference in New Issue
Block a user