From dbe8d070a410abfbc04ed1973a384040aaaee1cb Mon Sep 17 00:00:00 2001 From: Paul Guyot Date: Sun, 28 Apr 2024 23:04:00 +0200 Subject: [PATCH] Fix CI detection of kernel headers --- .github/workflows/arm-runner.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/arm-runner.yml b/.github/workflows/arm-runner.yml index f0ed776..1fad83f 100644 --- a/.github/workflows/arm-runner.yml +++ b/.github/workflows/arm-runner.yml @@ -49,10 +49,9 @@ jobs: base_image: ${{ matrix.base_image }} cpu: ${{ matrix.cpu }} commands: | - kernel_version=`apt list --installed | grep raspberrypi-kernel | awk 'NR == 1 { print $2 }' | sed -e 's|1:||g'` - arch=`apt list --installed | grep raspberrypi-kernel | awk 'NR == 1 { print $3 }'` - wget -q http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel-headers_${kernel_version}_${arch}.deb - dpkg --install raspberrypi-kernel-headers_${kernel_version}_${arch}.deb + kernel_headers_pkg=`apt-cache show raspberrypi-kernel-headers | sed -n -e 's|Filename: .*/||p'` + wget -q http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/${kernel_headers_pkg} + dpkg --install ${kernel_headers_pkg} apt-get update -y --allow-releaseinfo-change apt-get install --no-install-recommends -y libasound2-dev make gcc libc6-dev for builddir in /lib/modules/*/build ; do