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' || '' }}
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 }}
0 commit comments