Skip to content

Factor out tar-artifacts action (#148) #87

Factor out tar-artifacts action (#148)

Factor out tar-artifacts action (#148) #87

Workflow file for this run

name: bpf-ci
on:
pull_request:
push:
branches:
- main
concurrency:
group: ci-test-${{ github.ref_name }}
cancel-in-progress: true
jobs:
build-and-test:
strategy:
matrix:
runs_on: ["ubuntu-24.04"]
build_runs_on: ["ubuntu-24.04"]
arch: ["x86_64"]
toolchain:
- {"name": "gcc", "fullname": "gcc", "version": 17}
- {"name": "llvm", "fullname": "llvm-17", "version": 17}
tests: [{"include": [{"test": "test_progs", "continue_on_error": false, "timeout_minutes": 360}, {"test": "test_progs_no_alu32", "continue_on_error": false, "timeout_minutes": 360}, {"test": "test_verifier", "continue_on_error": false, "timeout_minutes": 360}, {"test": "test_maps", "continue_on_error": false, "timeout_minutes": 360}]}]
fail-fast: false
# 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
permissions:
id-token: write
contents: read
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: "LATEST"
tests: ${{ toJSON(matrix.tests) }}
# We only run tests on pull requests.
run_tests: ${{ github.event_name != 'push' }}
# Download sources
download_sources: true
build_release: false