forked from falcosecurity/libs
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (62 loc) · 2.82 KB
/
driverkit.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
61
62
63
64
name: Driverkit
on:
pull_request:
paths:
- 'driver/**'
jobs:
build-drivers:
strategy:
matrix:
name: [linux-2.6.x, linux-3.x, linux-4.x, linux-5.x, linux-6.x]
include:
- name: linux-2.6.x
kernelrelease: 2.6.32-754.el6.x86_64
target: centos
kernelurls: https://download.falco.org/fixtures/libs/kernel-devel-2.6.32-754.el6.x86_64.rpm
- name: linux-3.x
kernelrelease: 3.10.0-957.el7.x86_64
target: centos
kernelurls: https://download.falco.org/fixtures/libs/kernel-devel-3.10.0-957.el7.x86_64.rpm
- name: linux-4.x
kernelrelease: 4.18.0-305.25.1.el8_4.x86_64
target: centos
kernelurls: https://download.falco.org/fixtures/libs/kernel-devel-4.18.0-305.25.1.el8_4.x86_64.rpm
- name: linux-5.x
kernelrelease: 5.19.12.arch1-1
target: arch
kernelurls: https://download.falco.org/fixtures/libs/linux-headers-5.19.12.arch1-1-x86_64.pkg.tar.zst
- name: linux-6.x
kernelrelease: 6.2.arch1-1
target: arch
kernelurls: https://download.falco.org/fixtures/libs/linux-headers-6.2.arch1-1-x86_64.pkg.tar.zst
runs-on: ubuntu-latest
container:
image: falcosecurity/driverkit:latest
steps:
- name: Test drivers build on ${{ matrix.name }}
run: |
driverkit docker --kernelrelease ${{ matrix.kernelrelease }} --target ${{ matrix.target }} --output-module /tmp/libs.ko --output-probe /tmp/libs.o --driverversion $GITHUB_SHA --loglevel debug --kernelurls ${{ matrix.kernelurls }}
build-drivers-arm64:
strategy:
matrix:
name: [linux-4.x, linux-5.x, linux-6.x]
include:
- name: linux-4.x
kernelrelease: 4.18.0-305.25.1.el8_4.aarch64
target: centos
kernelurls: https://download.falco.org/fixtures/libs/kernel-devel-4.18.0-305.25.1.el8_4.aarch64.rpm
- name: linux-5.x
kernelrelease: 5.14.0-331.el9.aarch64
target: centos
kernelurls: https://download.falco.org/fixtures/libs/kernel-devel-5.14.0-331.el9.aarch64.rpm
- name: linux-6.x
kernelrelease: 6.4.1-1.el9.elrepo.aarch64
target: centos
kernelurls: https://download.falco.org/fixtures/libs/kernel-ml-devel-6.4.1-1.el9.elrepo.aarch64.rpm
runs-on: ubuntu-latest
container:
image: falcosecurity/driverkit:latest
steps:
- name: Test drivers build on ${{ matrix.name }}
run: |
driverkit docker --kernelrelease ${{ matrix.kernelrelease }} --target ${{ matrix.target }} --output-module /tmp/libs.ko --output-probe /tmp/libs.o --driverversion $GITHUB_SHA --loglevel debug --kernelurls ${{ matrix.kernelurls }} --architecture arm64 --timeout 600