forked from gregkh/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 831 Bytes
/
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
name: C/C++ CI
on:
push:
branches: [ "linux-rolling-stable" ]
pull_request:
branches: [ "linux-rolling-stable" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: move config
run: cp config-um .config
- name: make
run: make ARCH=um all
- name: create artifacts dir
run: mkdir artifacts
- name: copy kernel
run: cp linux artifacts/
- name: copy kernel modules
run: make modules_install INSTALL_MOD_PATH=./artifacts ARCH=um
- name: remove kernel module directory simlinks
run: rm artifacts/lib/modules/$(make kernelrelease)/build artifacts/lib/modules/$(make kernelrelease)/source
- uses: actions/upload-artifact@v3
with:
name: linux-build-artifacts
path: artifacts/