Skip to content

Commit

Permalink
CI: update per kernel tests
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <dev@der-flo.net>
  • Loading branch information
florianl committed Dec 27, 2023
1 parent 6594511 commit 664c554
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 664c554

Please sign in to comment.