forked from veeam/blksnap
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.17 KB
/
Kernel-module.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
name: Build module
on:
workflow_dispatch:
push:
branches:
- "*"
paths:
- "module/**"
pull_request:
branches:
- "*"
paths:
- "module/**"
# Run every week
schedule:
- cron: '0 23 1 * *'
jobs:
build-on-image:
name: Kernel ${{ matrix.kversion }}
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
# Disable seccomp until a container manager in GitHub recognizes
# clone3() syscall,
# <https://github.com/actions/virtual-environments/issues/3812>.
options: --security-opt seccomp=unconfined
strategy:
fail-fast: false
matrix:
include:
- kversion: "5.10"
image: "library/debian:bullseye"
- kversion: "6.1"
image: "library/debian:bookworm"
- kversion: "last stable"
image: "library/debian:sid"
steps:
- uses: actions/checkout@v4
- name: Install packages required
run: |
apt-get update
apt-get install -y linux-headers-amd64 make g++
- name: Build kernel module
run: |
cd module
make -Wall -C /lib/modules/*/build M=`pwd`