forked from epics-modules/mrfioc2
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (74 loc) · 1.95 KB
/
linux-build.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Linux kernel module
on:
push:
paths:
- 'mrmShared/linux/**'
pull_request:
paths:
- 'mrmShared/linux/**'
workflow_dispatch:
jobs:
specific:
name: With ${{ matrix.version }}
runs-on: ${{ matrix.os }}
env:
KSER: ${{ matrix.series }}
KVER: ${{ matrix.version }}
CC: ${{ matrix.cc }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
series: 3.x
version: 3.10
- os: ubuntu-20.04
series: 4.x
version: 4.9.1
- os: ubuntu-20.04
series: 5.x
version: 5.9.6
- os: ubuntu-latest
series: 5.x
version: 5.15
steps:
- uses: actions/checkout@v2
- name: Info
run: |
gcc --version
- name: Deps
run: |
sudo apt-get update
# linux-headers-* only to pull in kbuild deps
sudo apt-get -y install linux-headers-`uname -r` kmod libelf-dev
[ "${{ matrix.cc }}" != "gcc-4.8" ] || sudo apt-get -y install gcc-4.8
- name: Setup Linux
run: |
install -d kernel
curl -s https://cdn.kernel.org/pub/linux/kernel/v$KSER/linux-$KVER.tar.xz | tar -C kernel --strip-components=1 -xJ
make -C kernel CC=${CC:=gcc} defconfig
make -C kernel CC=${CC:=gcc} modules_prepare
- name: Build
run: |
make -C mrmShared/linux CC=${CC:=gcc} KERNELDIR="$PWD/kernel"
host:
name: With VM host
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Info
run: |
uname -a
gcc --version
- name: Deps
run: |
sudo apt-get update
sudo apt-get -y install linux-headers-`uname -r`
- name: Build
run: make -C mrmShared/linux
- name: Install/Load
run: |
sudo make -C mrmShared/linux modules_install
sudo depmod -a
sudo modprobe mrf
sudo dmesg | tail -n 100