-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build-selftests: v2 of the action inputs
Changes in action inputs: * kernel-root is now a required input * kernel, kbuild-output and max-make-jobs are removed kernel-root input is required, because to build selftests one must to clone a kernel source tree first. The build script behavior can be directed more granularly with env variables: * KBUILD_OUTPUT now defaults to the kernel-root * VMLINUX_BTF now can be set externally * MAX_MAKE_JOBS can be set as env variable if desired Preparation script logic is removed: the rationale is that the caller is responsible for setting up required environment before building. Signed-off-by: Ihor Solodrai <ihor.solodrai@pm.me>
- Loading branch information
Showing
2 changed files
with
20 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,27 @@ | ||
name: 'build selftests' | ||
description: 'Build BPF selftests' | ||
inputs: | ||
kernel: | ||
description: 'kernel version' | ||
default: 'LATEST' | ||
toolchain: | ||
description: 'what toolchain to use' | ||
default: 'gcc' | ||
kbuild-output: | ||
description: 'relative or absolute path to use for storing build artifacts' | ||
arch: | ||
description: 'arch' | ||
required: true | ||
kernel-root: | ||
description: 'Path to the root of the kernel source tree' | ||
required: true | ||
max-make-jobs: | ||
description: 'Maximum number of jobs to use when running make (e.g argument to -j). Default: 4*nproc' | ||
default: '' | ||
llvm-version: | ||
description: 'llvm version' | ||
required: false | ||
default: '16' | ||
arch: | ||
description: 'arch' | ||
required: true | ||
default: '18' | ||
toolchain: | ||
description: 'gcc or llvm' | ||
default: 'gcc' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: build selftests | ||
shell: bash | ||
run: | | ||
kbuild_output="$(realpath ${{ inputs.kbuild-output }})" | ||
export LLVM_VERSION=${{ inputs.llvm-version }} | ||
${GITHUB_ACTION_PATH}/build_selftests.sh "${{ inputs.arch }}" "${{ inputs.kernel }}" "${{ inputs.toolchain }}" "${kbuild_output}" | ||
env: | ||
MAX_MAKE_JOBS: ${{ inputs.max-make-jobs }} | ||
LLVM_VERSION: ${{ inputs.llvm-version }} | ||
run: | | ||
${GITHUB_ACTION_PATH}/build_selftests.sh "${{ inputs.arch }}" "${{ inputs.toolchain }}" "${{ inputs.kernel-root }}" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters