Skip to content

Commit 511cffd

Browse files
committed
1 parent cb04127 commit 511cffd

File tree

3 files changed

+919
-3
lines changed

3 files changed

+919
-3
lines changed

.github/workflows/kernel-build.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
timeout-minutes: 100
4747
env:
4848
ARTIFACTS_ARCHIVE: "vmlinux-${{ inputs.arch }}-${{ inputs.toolchain_full }}.tar.zst"
49+
50+
BUILD_BPF_GCC: ${{ inputs.arch == 'x86_64' && 'true' || '' }}
51+
BPF_GCC_INSTALL_DIR: ${{ github.workspace }}/bpf-gcc
52+
4953
BPF_NEXT_BASE_BRANCH: 'master'
5054
BPF_NEXT_FETCH_DEPTH: 64 # A bit of history is needed to facilitate incremental builds
5155
# BUILD_SCHED_EXT_SELFTESTS: ${{ inputs.arch == 'x86_64' || inputs.arch == 'aarch64' && 'true' || '' }}
@@ -92,7 +96,7 @@ jobs:
9296
repo-root: ${{ env.REPO_ROOT }}
9397

9498
- name: Setup build environment
95-
uses: libbpf/ci/setup-build-env@v2
99+
uses: theihor/libbpf-ci/setup-build-env@bpf-gcc
96100
with:
97101
arch: ${{ inputs.arch }}
98102
llvm-version: ${{ inputs.llvm-version }}
@@ -106,11 +110,19 @@ jobs:
106110
kbuild-output: ${{ env.KBUILD_OUTPUT }}
107111
max-make-jobs: 32
108112
llvm-version: ${{ inputs.llvm-version }}
113+
114+
- if: ${{ env.BUILD_BPF_GCC }}
115+
name: Build GCC for BPF selftests
116+
uses: theihor/libbpf-ci/build-bpf-gcc@bpf-gcc
117+
with:
118+
install-dir: ${{ env.BPF_GCC_INSTALL_DIR }}
119+
109120
- name: Build selftests/bpf
110-
uses: libbpf/ci/build-selftests@v2
121+
uses: theihor/libbpf-ci/build-selftests@bpf-gcc
111122
env:
112123
MAX_MAKE_JOBS: 32
113124
RELEASE: ${{ inputs.release && '1' || '' }}
125+
BPF_GCC: ${{ env.BUILD_BPF_GCC && env.BPF_GCC_INSTALL_DIR || '' }}
114126
with:
115127
arch: ${{ inputs.arch }}
116128
kernel-root: ${{ env.KERNEL_ROOT }}

.github/workflows/kernel-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
run: zstd -d -T0 vmlinux-${{ inputs.arch }}-${{ inputs.toolchain_full }}.tar.zst --stdout | tar -xf -
6666

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

0 commit comments

Comments
 (0)