1name: 'build-selftests' 2description: 'Build BPF selftests' 3inputs: 4 repo-path: 5 description: 'where is the source code' 6 required: true 7 kernel: 8 description: 'kernel version or LATEST' 9 required: true 10 default: 'LATEST' 11 vmlinux: 12 description: 'where is vmlinux file' 13 required: true 14 default: '${{ github.workspace }}/vmlinux' 15 16runs: 17 using: "composite" 18 steps: 19 - shell: bash 20 run: | 21 echo "::group::Setup Env" 22 sudo apt-get install -y qemu-kvm zstd binutils-dev elfutils libcap-dev libelf-dev libdw-dev python3-docutils 23 echo "::endgroup::" 24 - shell: bash 25 run: | 26 export KERNEL=${{ inputs.kernel }} 27 export REPO_ROOT="${{ github.workspace }}" 28 export REPO_PATH="${{ inputs.repo-path }}" 29 export VMLINUX_BTF="${{ inputs.vmlinux }}" 30 ${{ github.action_path }}/build_selftests.sh 31