Add build selftests/sched_ext step #706
Workflow file for this run
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
name: bpf-ci | |
on: | |
pull_request: | |
push: | |
branches: | |
- bpf_base | |
- bpf-next_base | |
concurrency: | |
group: ci-test-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
set-matrix: | |
# FIXME: set-matrix is lightweight, run it on any self-hosted machines for kernel-patches org | |
# so we do not wait for GH hosted runners when there potentially all are busy because of bpf-rc | |
# repo for instance. | |
# This could be somehow fixed long term by making this action/workflow re-usable and letting the called | |
# specify what to run on. | |
runs-on: ${{ github.repository_owner == 'kernel-patches' && 'x86_64' || 'ubuntu-latest' }} | |
outputs: | |
build-matrix: ${{ steps.set-matrix-impl.outputs.build_matrix }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: set-matrix-impl | |
run: | | |
python3 .github/scripts/matrix.py | |
build-and-test: | |
# Setting name to arch-compiler here to avoid lengthy autogenerated names due to matrix | |
# e.g build-and-test x86_64-gcc / test (test_progs_parallel, true, 30) / test_progs_parallel on x86_64 with gcc | |
name: "${{ matrix.arch }}-${{ matrix.toolchain.fullname }}" | |
uses: ./.github/workflows/kernel-build-test.yml | |
needs: [set-matrix] | |
permissions: | |
id-token: write | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJSON(needs.set-matrix.outputs.build-matrix) }} | |
with: | |
arch: ${{ matrix.arch }} | |
toolchain_full: ${{ matrix.toolchain.fullname }} | |
toolchain: ${{ matrix.toolchain.name }} | |
runs_on: ${{ toJSON(matrix.runs_on) }} | |
build_runs_on: ${{ toJSON(matrix.build_runs_on) }} | |
llvm-version: ${{ matrix.toolchain.version }} | |
kernel: ${{ matrix.kernel }} | |
tests: ${{ toJSON(matrix.tests) }} | |
run_veristat: ${{ matrix.run_veristat }} | |
# We only run tests on pull requests. | |
run_tests: ${{ github.event_name != 'push' }} | |
# Download sources | |
download_sources: ${{ github.repository == 'kernel-patches/vmtest' }} | |
build_release: ${{ matrix.build_release }} | |
secrets: | |
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }} |