-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial Github CI against linux kernels * Fixed path for linux-next source * Added perl-modules to Dockerfile * Removed some old CI files and tidied things up * Added CI for linux stable kernel * Schedule compile checks every Monday morning at 02:00
- Loading branch information
1 parent
8cfbf84
commit 8cdf936
Showing
13 changed files
with
213 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: DAHDI Kernel CI for LTS kernels | ||
|
||
on: | ||
schedule: | ||
- cron: 00 02 * * 1 | ||
|
||
jobs: | ||
kernel_test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 1 | ||
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' | ||
] | ||
steps: | ||
- name: Cache kernel git repo | ||
id: cache-kernel-git | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./linux | ||
key: kernel-git-cache | ||
|
||
- if: ${{ steps.cache-kernel-git.outputs.cache-hit != 'true' }} | ||
name: Clone Kernel repo | ||
run: git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git | ||
|
||
- name: Update kernel git | ||
run: git fetch | ||
working-directory: ./linux | ||
|
||
- name: Switch to desired branch | ||
run: git checkout ${{matrix.kernel_branch}} | ||
working-directory: ./linux | ||
|
||
- name: Fetch dahdi-linux | ||
uses: actions/checkout@v3 | ||
with: | ||
path: dahdi-linux | ||
|
||
- name: Create build container | ||
run: docker build ./ci -t dahdi-builder | ||
working-directory: ./dahdi-linux | ||
|
||
- name: Build dahdi-linux | ||
run: "docker run -v ${PWD}/dahdi-linux:/src -v ${PWD}/linux:/linux dahdi-builder" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: DAHDI Kernel CI for mainline kernel | ||
|
||
on: | ||
schedule: | ||
- cron: 00 02 * * 1 | ||
|
||
jobs: | ||
kernel_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cache kernel git repo | ||
id: cache-kernel-git | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./linux | ||
key: kernel-mainline-git-cache | ||
|
||
- if: ${{ steps.cache-kernel-git.outputs.cache-hit != 'true' }} | ||
name: Clone Kernel repo | ||
run: git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git | ||
|
||
- name: Update kernel git | ||
run: git fetch | ||
working-directory: ./linux | ||
|
||
- name: Switch to desired branch | ||
run: git checkout master | ||
working-directory: ./linux | ||
|
||
- name: Fetch dahdi-linux | ||
uses: actions/checkout@v3 | ||
with: | ||
path: dahdi-linux | ||
|
||
- name: Create build container | ||
run: docker build ./ci -t dahdi-builder | ||
working-directory: ./dahdi-linux | ||
|
||
- name: Build dahdi-linux | ||
run: "docker run -v ${PWD}/dahdi-linux:/src -v ${PWD}/linux:/linux dahdi-builder" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: DAHDI Kernel CI for linux-next | ||
|
||
on: | ||
schedule: | ||
- cron: 00 02 * * 1 | ||
|
||
jobs: | ||
kernel_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cache kernel git repo | ||
id: cache-kernel-git | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./linux-next | ||
key: kernel-next-git-cache | ||
|
||
- if: ${{ steps.cache-kernel-git.outputs.cache-hit != 'true' }} | ||
name: Clone Kernel repo | ||
run: git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git | ||
|
||
- name: Update kernel git | ||
run: git fetch | ||
working-directory: ./linux-next | ||
|
||
- name: Switch to desired branch | ||
run: git checkout master | ||
working-directory: ./linux-next | ||
|
||
- name: Fetch dahdi-linux | ||
uses: actions/checkout@v3 | ||
with: | ||
path: dahdi-linux | ||
|
||
- name: Create build container | ||
run: docker build ./ci -t dahdi-builder | ||
working-directory: ./dahdi-linux | ||
|
||
- name: Build dahdi-linux | ||
run: "docker run -v ${PWD}/dahdi-linux:/src -v ${PWD}/linux-next:/linux dahdi-builder" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: DAHDI Kernel CI for Stable kernel | ||
|
||
on: | ||
schedule: | ||
- cron: 00 02 * * 1 | ||
|
||
jobs: | ||
kernel_test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 1 | ||
fail-fast: false | ||
matrix: | ||
kernel_branch: [ | ||
'linux-6.4.y' | ||
] | ||
steps: | ||
- name: Cache kernel git repo | ||
id: cache-kernel-git | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./linux | ||
key: kernel-git-cache | ||
|
||
- if: ${{ steps.cache-kernel-git.outputs.cache-hit != 'true' }} | ||
name: Clone Kernel repo | ||
run: git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git | ||
|
||
- name: Update kernel git | ||
run: git fetch | ||
working-directory: ./linux | ||
|
||
- name: Switch to desired branch | ||
run: git checkout ${{matrix.kernel_branch}} | ||
working-directory: ./linux | ||
|
||
- name: Fetch dahdi-linux | ||
uses: actions/checkout@v3 | ||
with: | ||
path: dahdi-linux | ||
|
||
- name: Create build container | ||
run: docker build ./ci -t dahdi-builder | ||
working-directory: ./dahdi-linux | ||
|
||
- name: Build dahdi-linux | ||
run: "docker run -v ${PWD}/dahdi-linux:/src -v ${PWD}/linux:/linux dahdi-builder" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM debian:bookworm | ||
RUN apt-get update | ||
RUN apt-get -y upgrade | ||
RUN apt-get -y install gcc make perl-modules | ||
RUN apt-get -y install flex bison wget libssl-dev libelf-dev bc | ||
ENTRYPOINT [ "/usr/bin/bash" ] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
cd /linux | ||
echo "### Cleaning Kernel tree" | ||
echo " # rm .config" | ||
rm .config | ||
|
||
echo " # make clean" | ||
make clean | ||
echo "### Get kernel version" | ||
make kernelversion | ||
echo "### Create defconfig and prepare for module building" | ||
echo " # make x86_64_defconfig" | ||
make x86_64_defconfig | ||
echo " # make modules_prepare" | ||
make modules_prepare | ||
|
||
echo "### Building DAHDI modules and installing" | ||
cd /src | ||
echo " # make clean" | ||
make clean | ||
echo " # make install KSRC=/linux" | ||
make install KSRC=/linux | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.