@@ -156,6 +156,15 @@ jobs:
156
156
toolchain : ${{ matrix.toolchain }}
157
157
kbuild-output : ${{ env.KBUILD_OUTPUT }}
158
158
max-make-jobs : 32
159
+ - name : Prepare rootfs
160
+ uses : libbpf/ci/prepare-rootfs@master
161
+ with :
162
+ project-name : ' libbpf'
163
+ arch : ${{ matrix.arch }}
164
+ kernel : ${{ matrix.kernel }}
165
+ kernel-root : ' .'
166
+ kbuild-output : ${{ env.KBUILD_OUTPUT }}
167
+ image-output : ' root.img'
159
168
- name : Tar artifacts
160
169
run : |
161
170
file_list=""
@@ -170,14 +179,9 @@ jobs:
170
179
fi
171
180
# zstd is installed by default in the runner images.
172
181
tar -cf - \
173
- "${KBUILD_OUTPUT}"/.config \
174
- "${KBUILD_OUTPUT}"/$(KBUILD_OUTPUT="${KBUILD_OUTPUT}" make -s image_name) \
175
- "${KBUILD_OUTPUT}"/include/config/auto.conf \
176
- "${KBUILD_OUTPUT}"/include/generated/autoconf.h \
177
- "${KBUILD_OUTPUT}"/vmlinux \
178
182
${file_list} \
179
- --exclude '*.h' \
180
- selftests/bpf/ | zstd -T0 -19 -o vmlinux-${{ matrix.arch }}-${{ matrix.toolchain }}.tar.zst
183
+ root.img \
184
+ vmlinuz | zstd -T0 -19 -o vmlinux-${{ matrix.arch }}-${{ matrix.toolchain }}.tar.zst
181
185
- uses : actions/upload-artifact@v3
182
186
with :
183
187
name : vmlinux-${{ matrix.arch }}-${{ matrix.toolchain }}
@@ -205,23 +209,14 @@ jobs:
205
209
- name : Untar artifacts
206
210
# zstd is installed by default in the runner images.
207
211
run : zstd -d -T0 vmlinux-${{ matrix.arch }}-${{ matrix.toolchain }}.tar.zst --stdout | tar -xf -
208
- - name : Prepare rootfs
209
- uses : libbpf/ci/prepare-rootfs@master
210
- with :
211
- project-name : ' libbpf'
212
- arch : ${{ matrix.arch }}
213
- kernel : ${{ matrix.kernel }}
214
- kernel-root : ' .'
215
- kbuild-output : ${{ env.KBUILD_OUTPUT }}
216
- image-output : ' /tmp/root.img'
217
- test : ${{ matrix.test }}
218
212
- name : Run selftests
219
213
uses : libbpf/ci/run-qemu@master
220
214
continue-on-error : ${{ matrix.continue_on_error }}
221
215
timeout-minutes : ${{ matrix.timeout_minutes }}
222
216
with :
223
217
arch : ${{ matrix.arch}}
224
- img : ' /tmp /root.img'
218
+ img : ' ${{ github.workspace }} /root.img'
225
219
vmlinuz : ' ${{ github.workspace }}/vmlinuz'
226
220
kernel-root : ' .'
227
221
max-cpu : 8
222
+ kernel-test : ${{ matrix.test }}
0 commit comments