-
Notifications
You must be signed in to change notification settings - Fork 71
55 lines (46 loc) · 1.34 KB
/
kernel-lts.yaml
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
name: DAHDI Kernel CI for LTS kernels
on:
schedule:
- cron: 00 02 * * *
pull_request:
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',
'linux-6.6.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"