-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (48 loc) · 1.22 KB
/
main.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
name: CI
on:
push:
branches:
- master
tags:
- '**'
pull_request:
concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.host }}
strategy:
fail-fast: false
matrix:
linux:
- v6.1
- master
host:
- ubuntu-22.04
include:
- linux: v5.10
host: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
path: tp_smapi
- uses: actions/checkout@v4
with:
repository: torvalds/linux
ref: ${{ matrix.linux }}
path: linux
- run: sudo apt-get install -y libelf-dev ccache
- uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.linux }}
- name: Configure kernel
run: |
make -C linux tinyconfig
echo -e "CONFIG_64BIT=y\nCONFIG_X86_64=y\nCONFIG_MODULES=y\nCONFIG_INPUT=y" > linux/kernel/configs/ci.config
make -C linux ci.config
- name: Run make -C linux
run: |
export PATH="/usr/lib/ccache:$PATH"
make -C linux -j $(nproc)
- run: make -C tp_smapi modules KBUILD=../linux HDAPS=1