Skip to content

Commit 3309d68

Browse files
committed
kernel-build: setup qemu and binfmt on the runner
1 parent c60ae87 commit 3309d68

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/kernel-build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ jobs:
9898
llvm-version: ${{ inputs.llvm-version }}
9999
pahole: master
100100

101+
# We have to setup qemu+binfmt in order to enable cross-compation of selftests.
102+
# During selftests build, freshly built bpftool is executed.
103+
# On bare-metal and s390x hosts binfmt is pre-configured.
104+
- name: Set up Docker
105+
uses: docker/setup-docker-action@v4
106+
- name: Setup binfmt and qemu
107+
uses: docker/setup-qemu-action@v3
108+
with:
109+
image: tonistiigi/binfmt:qemu-v9.2.0
110+
101111
- name: Build kernel image
102112
uses: libbpf/ci/build-linux@v3
103113
with:

0 commit comments

Comments
 (0)