-
Notifications
You must be signed in to change notification settings - Fork 52
40 lines (38 loc) · 1.04 KB
/
ci.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
name: Continuous Integration
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
build:
strategy:
fail-fast: false
matrix:
kernel:
- 4.4.260
- 4.9.260
- 4.14.224
- 4.19.179
- 5.4.104
- 5.10.22
- 5.11.6
- 5.16
- 5.17
name: "Linux ${{ matrix.kernel }}"
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install libelf-dev
- name: Download kernel sources
run: curl https://cdn.kernel.org/pub/linux/kernel/$(echo ${{ matrix.kernel }} | sed -E 's/([^.]+)[.].*/v\1.x/')/linux-${{ matrix.kernel }}.tar.xz | tar xJ
- name: Configure kernel sources
run: |
cp /boot/config-$(uname -r) linux-${{ matrix.kernel }}/.config
yes "" | make -C linux-${{ matrix.kernel }} oldconfig
make -C linux-${{ matrix.kernel }} modules_prepare
- name: Build
run: |
make KSRC=linux-${{ matrix.kernel }}