From 664c5540554572aef5b981a40c597dd1e1331a86 Mon Sep 17 00:00:00 2001 From: Florian Lehner Date: Wed, 27 Dec 2023 09:48:52 +0100 Subject: [PATCH] CI: update per kernel tests Signed-off-by: Florian Lehner --- .github/workflows/integration.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index e87d403..6258449 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -48,28 +48,29 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - kernel-version: ["4.9", "4.14", "4.19", "5.4", "5.10", "5.15", "6.1"] + kernel-version: ["4.9", "4.14", "4.19", "5.4", "5.10", "5.15", "6.1", "6.6"] steps: - - name: install qemu && curl + - name: install dependencies # Make sure required software packages are available. run: | sudo apt --yes update - sudo apt --yes install qemu-system-x86 curl + sudo apt --yes install --no-install-recommends qemu-system-x86 docker-buildx-plugin - name: get initramfs # Fetch the initramfs.cpio that was created in the previous step. uses: actions/download-artifact@v4 with: name: initramfs - - - name: get kernel + + - name: fetch and unpack Linux kernel # Fetch the public kernel image that will be used in this test run. + # Inspired by extract_oci_image from cilium/ebpf. run: | - curl -s -L -O --fail https://github.com/cilium/ci-kernels/raw/master/linux-${{ matrix.kernel-version }}-amd64.tgz - tar xvf linux-${{ matrix.kernel-version }}-amd64.tgz + mkdir /tmp/ci-kernel + echo "FROM ghcr.io/cilium/ci-kernels:${{ matrix.kernel-version }}" | docker buildx build --quiet --pull --output="/tmp/ci-kernel" - - name: run tests on kernel # Run the tests. run: | - qemu-system-x86_64 -nographic -append "console=ttyS0" -m 2G -kernel boot/vmlinuz -initrd initramfs.cpio | tee log.txt + qemu-system-x86_64 -nographic -append "console=ttyS0" -m 2G -kernel /tmp/ci-kernel/boot/vmlinuz -initrd initramfs.cpio | tee log.txt grep PASS log.txt \ No newline at end of file