Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
theihor committed Jan 10, 2025
1 parent cb04127 commit 59bb0f3
Show file tree
Hide file tree
Showing 4 changed files with 922 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ def tests(self) -> Dict[str, Any]:
# if self.arch in [Arch.X86_64, Arch.AARCH64]:
# tests_list.append("sched_ext")

if self.arch == Arch.X86_64:
tests_list.append("test_progs-bpf_gcc")

if not self.parallel_tests:
tests_list = [test for test in tests_list if not test.endswith("parallel")]

Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/kernel-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
timeout-minutes: 100
env:
ARTIFACTS_ARCHIVE: "vmlinux-${{ inputs.arch }}-${{ inputs.toolchain_full }}.tar.zst"

BUILD_BPF_GCC: ${{ inputs.arch == 'x86_64' && 'true' || '' }}
BPF_GCC_INSTALL_DIR: ${{ github.workspace }}/bpf-gcc

BPF_NEXT_BASE_BRANCH: 'master'
BPF_NEXT_FETCH_DEPTH: 64 # A bit of history is needed to facilitate incremental builds
# BUILD_SCHED_EXT_SELFTESTS: ${{ inputs.arch == 'x86_64' || inputs.arch == 'aarch64' && 'true' || '' }}
Expand Down Expand Up @@ -92,7 +96,7 @@ jobs:
repo-root: ${{ env.REPO_ROOT }}

- name: Setup build environment
uses: libbpf/ci/setup-build-env@v2
uses: theihor/libbpf-ci/setup-build-env@bpf-gcc
with:
arch: ${{ inputs.arch }}
llvm-version: ${{ inputs.llvm-version }}
Expand All @@ -106,11 +110,19 @@ jobs:
kbuild-output: ${{ env.KBUILD_OUTPUT }}
max-make-jobs: 32
llvm-version: ${{ inputs.llvm-version }}

- if: ${{ env.BUILD_BPF_GCC }}
name: Build GCC for BPF selftests
uses: theihor/libbpf-ci/build-bpf-gcc@bpf-gcc
with:
install-dir: ${{ env.BPF_GCC_INSTALL_DIR }}

- name: Build selftests/bpf
uses: libbpf/ci/build-selftests@v2
uses: theihor/libbpf-ci/build-selftests@bpf-gcc
env:
MAX_MAKE_JOBS: 32
RELEASE: ${{ inputs.release && '1' || '' }}
BPF_GCC: ${{ env.BUILD_BPF_GCC && env.BPF_GCC_INSTALL_DIR || '' }}
with:
arch: ${{ inputs.arch }}
kernel-root: ${{ env.KERNEL_ROOT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kernel-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
run: zstd -d -T0 vmlinux-${{ inputs.arch }}-${{ inputs.toolchain_full }}.tar.zst --stdout | tar -xf -

- name: Run selftests
uses: theihor/libbpf-ci/run-vmtest@run-vmtest-update
uses: theihor/libbpf-ci/run-vmtest@bpf-gcc
# https://github.com/actions/runner/issues/1483#issuecomment-1031671517
# booleans are weird in GH.
continue-on-error: ${{ fromJSON(env.CONTINUE_ON_ERROR) }}
Expand Down
Loading

0 comments on commit 59bb0f3

Please sign in to comment.