Skip to content

Commit 448033d

Browse files
committed
CI: Build DAHDI against custom kernels.
To better test DAHDI against more recent kernels, compile the kernel ourselves and build DAHDI against it, including any patches necessary to successfully do so.
1 parent fe73e12 commit 448033d

File tree

2 files changed

+277
-112
lines changed

2 files changed

+277
-112
lines changed

.github/workflows/main.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,105 @@ on:
1616
# kernel-devel mismatch has been detected. Package provides 6.12.0-0.rc0.20240918git4a39ac5b7d62, but running kernel is 6.8.0-1014-azure
1717

1818
jobs:
19+
dahdi-kernel-mainline:
20+
runs-on: ubuntu-24.04
21+
name: DAHDI, mainline kernel
22+
container: debian:12
23+
steps:
24+
- name: Install packages
25+
run: |
26+
apt-get -y update
27+
apt-get -y upgrade
28+
apt-get -y install git gcc make perl-modules flex bison wget libssl-dev libelf-dev bc
29+
- name: Clone kernel
30+
run: |
31+
cd /usr/src
32+
git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
33+
- name: Build kernel
34+
run: |
35+
cd /usr/src/linux
36+
make -j$(nproc) kernelversion
37+
make -j$(nproc) x86_64_defconfig
38+
make -j$(nproc) modules_prepare
39+
make -j$(nproc)
40+
make -j$(nproc) modules
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
- name: Build DAHDI
44+
run: |
45+
./phreaknet.sh make
46+
KSRC=/usr/src/linux phreaknet dahdi --drivers
47+
dahdi-kernel-next:
48+
runs-on: ubuntu-24.04
49+
name: DAHDI, next kernel
50+
container: debian:12
51+
steps:
52+
- name: Install packages
53+
run: |
54+
apt-get -y update
55+
apt-get -y upgrade
56+
apt-get -y install git gcc make perl-modules flex bison wget libssl-dev libelf-dev bc
57+
- name: Clone kernel
58+
run: |
59+
cd /usr/src
60+
git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
61+
- name: Build kernel
62+
run: |
63+
cd /usr/src/linux-next
64+
make -j$(nproc) kernelversion
65+
make -j$(nproc) x86_64_defconfig
66+
make -j$(nproc) modules_prepare
67+
make -j$(nproc)
68+
make -j$(nproc) modules
69+
- name: Checkout
70+
uses: actions/checkout@v4
71+
- name: Build DAHDI
72+
run: |
73+
./phreaknet.sh make
74+
KSRC=/usr/src/linux-next phreaknet dahdi --drivers
75+
dahdi-kernel-stable:
76+
runs-on: ubuntu-24.04
77+
name: DAHDI, stable kernel
78+
container: debian:12
79+
strategy:
80+
fail-fast: false
81+
matrix:
82+
kernel_branch: [
83+
'linux-4.14.y',
84+
'linux-4.19.y',
85+
'linux-5.4.y',
86+
'linux-5.10.y',
87+
'linux-5.15.y',
88+
'linux-6.1.y',
89+
'linux-6.5.y',
90+
'linux-6.6.y',
91+
'linux-6.7.y',
92+
'linux-6.8.y'
93+
]
94+
steps:
95+
- name: Install packages
96+
run: |
97+
apt-get -y update
98+
apt-get -y upgrade
99+
apt-get -y install git gcc make perl-modules flex bison wget libssl-dev libelf-dev bc
100+
- name: Clone kernel
101+
run: |
102+
cd /usr/src
103+
git clone --depth 1 --branch ${{matrix.kernel_branch}} git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
104+
- name: Build kernel
105+
run: |
106+
cd /usr/src/linux
107+
make -j$(nproc) kernelversion
108+
make -j$(nproc) x86_64_defconfig
109+
make -j$(nproc) modules_prepare
110+
make -j$(nproc)
111+
make -j$(nproc) modules
112+
- name: Checkout
113+
uses: actions/checkout@v4
114+
- name: Build DAHDI
115+
run: |
116+
./phreaknet.sh make
117+
KSRC=/usr/src/linux phreaknet dahdi --drivers
19118
ubuntu-latest:
20119
runs-on: ubuntu-24.04
21120
name: Ubuntu 24.04

0 commit comments

Comments
 (0)