-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (39 loc) · 1.17 KB
/
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
name: build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
kernel_version:
- master
- v5.15
- v5.10
kconfig_pm:
- "-e CONFIG_PM"
- "-d CONFIG_PM"
kconfig_debug_fs:
- "-e CONFIG_DEBUG_FS"
- "-d CONFIG_DEBUG_FS"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
path: src
- run: echo "::add-matcher::src/.github/workflows/gcc-problem-matcher.json"
- run: sudo apt-get update
- run: sudo apt-get install -y libelf-dev
- uses: actions/checkout@v4
with:
repository: torvalds/linux
path: linux
ref: ${{ matrix.kernel_version }}
- run: cp src/.github/workflows/all.config linux/
- run: scripts/config --file all.config ${{ matrix.kconfig_pm }} ${{ matrix.kconfig_debug_fs }}
working-directory: linux
- run: KCONFIG_ALLCONFIG=1 make allnoconfig
working-directory: linux
- run: make -j$(nproc)
working-directory: linux
- run: make -k "KDIR=${{ github.workspace }}/linux"
working-directory: src