File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed
Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 33set -euo pipefail
44
55# Most of the BPF CI dependencies are set up by libbpf/ci/setup-build-env action
6- # This script runs a subset of it , in order to cache the packages at image build time
6+ # This script runs a subset of that , in order to cache the packages at image build time
77export LIBBPF_CI_TAG=v3
88
99# These should correspond to https://github.com/kernel-patches/vmtest/blob/master/.github/scripts/matrix.py#L20-L21
1010# Otherwise there is no point in caching dependencies in the image
11- export GCC_VERSION=14
12- export LLVM_VERSION=20
11+ export GCC_VERSION=15
12+ export LLVM_VERSION=21
13+
14+ # do not install pahole and cross-compilation toolchain in the docker image
15+ export TARGET_ARCH=$( uname -m)
16+ export PAHOLE_BRANCH=none
1317
1418scratch=$( mktemp -d)
1519cd $scratch
16-
1720git clone --depth 1 --branch $LIBBPF_CI_TAG https://github.com/libbpf/ci.git actions
18- cd actions
19- ./setup-build-env/install_packages.sh
20- ./setup-build-env/install_clang.sh
21- ./run-vmtest/install-dependencies.sh
2221
23- # do not install pahole and cross-compilation toolchain in the docker image
22+ # Install build dependencies only on x86_64, we cross-compile everything else
23+ if [ " $( uname -m) " == " x86_64" ]; then
24+ cd " ${scratch} /actions/setup-build-env" && ./action.sh
25+ fi
26+
27+ cd " ${scratch} /actions/run-vmtest" && ./install-dependencies.sh
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5+ if [ " $( uname -m) " != " x86_64" ]; then
6+ echo " Skip setting up mirror repos in non-x86_64 image"
7+ exit 0
8+ fi
9+
510mkdir -p /libbpfci/mirrors
611git clone https://github.com/kernel-patches/bpf.git /libbpfci/mirrors/linux
712chmod -R a+rX /libbpfci/mirrors
You can’t perform that action at this time.
0 commit comments