-
-
Notifications
You must be signed in to change notification settings - Fork 9
60 lines (60 loc) · 2.37 KB
/
arm-runner.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Checking driver compiles on various versions of raspbian/raspios
on:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [zero_raspbian, zero_raspios, zero_dietpi, zero2_raspios, zero2_dietpi, zero2_64_raspios, zero2_64_dietpi]
include:
- target: zero_raspbian
cpu: arm1176
cpu_info: cpuinfo/raspberrypi_zero_w
base_image: raspbian_lite:latest
- target: zero_raspios
cpu: arm1176
cpu_info: cpuinfo/raspberrypi_zero_w
base_image: raspios_lite:latest
- target: zero_dietpi
cpu: arm1176
cpu_info: cpuinfo/raspberrypi_zero_w
base_image: dietpi:rpi_armv6_bullseye
- target: zero2_raspios
cpu: cortex-a7
cpu_info: cpuinfo/raspberrypi_zero2_w
base_image: raspios_lite:latest
- target: zero2_dietpi
cpu: cortex-a7
cpu_info: cpuinfo/raspberrypi_zero2_w
base_image: dietpi:rpi_armv7_bullseye
- target: zero2_64_raspios
cpu: cortex-a53
cpu_info: cpuinfo/raspberrypi_zero2_w_arm64
base_image: raspios_lite_arm64:latest
- target: zero2_64_dietpi
cpu: cortex-a53
cpu_info: cpuinfo/raspberrypi_zero2_w_arm64
base_image: dietpi:rpi_armv8_bullseye
steps:
- uses: actions/checkout@v2
- uses: pguyot/arm-runner-action@v2
with:
image_additional_mb: 1024
base_image: ${{ matrix.base_image }}
cpu: ${{ matrix.cpu }}
commands: |
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
parentdir=`dirname ${builddir}`
kernelrelease=`basename ${parentdir}`
make KERNELRELEASE=${kernelrelease}
sudo make install KERNELRELEASE=${kernelrelease}
make clean KERNELRELEASE=${kernelrelease}
make test KERNELRELEASE=${kernelrelease}
done