-
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: change action inputs to those actually required
- Loading branch information
Showing
3 changed files
with
25 additions
and
37 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
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