Skip to content

Commit

Permalink
CI: Build DAHDI against custom kernels.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
InterLinked1 committed Sep 23, 2024
1 parent fe73e12 commit 448033d
Show file tree
Hide file tree
Showing 2 changed files with 277 additions and 112 deletions.
99 changes: 99 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,105 @@ on:
# kernel-devel mismatch has been detected. Package provides 6.12.0-0.rc0.20240918git4a39ac5b7d62, but running kernel is 6.8.0-1014-azure

jobs:
dahdi-kernel-mainline:
runs-on: ubuntu-24.04
name: DAHDI, mainline kernel
container: debian:12
steps:
- name: Install packages
run: |
apt-get -y update
apt-get -y upgrade
apt-get -y install git gcc make perl-modules flex bison wget libssl-dev libelf-dev bc
- name: Clone kernel
run: |
cd /usr/src
git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
- name: Build kernel
run: |
cd /usr/src/linux
make -j$(nproc) kernelversion
make -j$(nproc) x86_64_defconfig
make -j$(nproc) modules_prepare
make -j$(nproc)
make -j$(nproc) modules
- name: Checkout
uses: actions/checkout@v4
- name: Build DAHDI
run: |
./phreaknet.sh make
KSRC=/usr/src/linux phreaknet dahdi --drivers
dahdi-kernel-next:
runs-on: ubuntu-24.04
name: DAHDI, next kernel
container: debian:12
steps:
- name: Install packages
run: |
apt-get -y update
apt-get -y upgrade
apt-get -y install git gcc make perl-modules flex bison wget libssl-dev libelf-dev bc
- name: Clone kernel
run: |
cd /usr/src
git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
- name: Build kernel
run: |
cd /usr/src/linux-next
make -j$(nproc) kernelversion
make -j$(nproc) x86_64_defconfig
make -j$(nproc) modules_prepare
make -j$(nproc)
make -j$(nproc) modules
- name: Checkout
uses: actions/checkout@v4
- name: Build DAHDI
run: |
./phreaknet.sh make
KSRC=/usr/src/linux-next phreaknet dahdi --drivers
dahdi-kernel-stable:
runs-on: ubuntu-24.04
name: DAHDI, stable kernel
container: debian:12
strategy:
fail-fast: false
matrix:
kernel_branch: [
'linux-4.14.y',
'linux-4.19.y',
'linux-5.4.y',
'linux-5.10.y',
'linux-5.15.y',
'linux-6.1.y',
'linux-6.5.y',
'linux-6.6.y',
'linux-6.7.y',
'linux-6.8.y'
]
steps:
- name: Install packages
run: |
apt-get -y update
apt-get -y upgrade
apt-get -y install git gcc make perl-modules flex bison wget libssl-dev libelf-dev bc
- name: Clone kernel
run: |
cd /usr/src
git clone --depth 1 --branch ${{matrix.kernel_branch}} git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- name: Build kernel
run: |
cd /usr/src/linux
make -j$(nproc) kernelversion
make -j$(nproc) x86_64_defconfig
make -j$(nproc) modules_prepare
make -j$(nproc)
make -j$(nproc) modules
- name: Checkout
uses: actions/checkout@v4
- name: Build DAHDI
run: |
./phreaknet.sh make
KSRC=/usr/src/linux phreaknet dahdi --drivers
ubuntu-latest:
runs-on: ubuntu-24.04
name: Ubuntu 24.04
Expand Down
Loading

0 comments on commit 448033d

Please sign in to comment.