Skip to content

Commit a8b6645

Browse files
opsiffAvenger-285714
authored andcommitted
CI: Add patch check by using build kernel riscv64
Signed-off-by: Wentao Guan <[email protected]>
1 parent c376cfd commit a8b6645

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build kernel riscv64
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
env:
8+
KBUILD_BUILD_USER: deepin-kernel-sig
9+
KBUILD_BUILD_HOST: deepin-kernel-builder
10+
11+
12+
permissions:
13+
pull-requests: read
14+
15+
jobs:
16+
build-kernel:
17+
runs-on: [self-hosted, linux, x64]
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: "Install Deps"
21+
run: |
22+
git config --global user.email $email
23+
git config --global user.name $KBUILD_BUILD_USER
24+
25+
- name: "Compile kernel"
26+
run: |
27+
# .config
28+
time make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- deepin_riscv64_desktop_defconfig
29+
time make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- -j$(nproc)
30+
31+
- name: 'Upload Kernel Artifact'
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: Kernel-ABI-riscv64
35+
path: "Module.symvers"

0 commit comments

Comments
 (0)