Skip to content

Commit 97aa857

Browse files
committed
CI: add extra build ci
deepin inclusion category: other Add an extra build test to detect more cases for there code. Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 5da5b66 commit 97aa857

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: build kernel extra
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+
email: support@deepin.org
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
permissions:
17+
pull-requests: read
18+
19+
jobs:
20+
build-kernel-extra:
21+
runs-on: [self-hosted, linux, x64]
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: "Install Deps"
25+
run: |
26+
git config --global user.email $email
27+
git config --global user.name $KBUILD_BUILD_USER
28+
29+
- name: "Compile kernel x86_64_defconfig"
30+
run: |
31+
# .config
32+
make x86_64_defconfig
33+
make -j$(nproc)
34+
35+
- name: "Clang build kernel x86_64_defconfig"
36+
run: |
37+
# .config
38+
make LLVM=-18 x86_64_defconfig
39+
make LLVM=-18 -j$(nproc)
40+
41+
- name: "Clang build kernel arm64 defconfig"
42+
run: |
43+
# .config
44+
make LLVM=-18 ARCH=arm64 defconfig
45+
make LLVM=-18 ARCH=arm64 -j$(nproc)
46+
47+
- name: "Clang build kernel loongarch loongson3_defconfig"
48+
run: |
49+
# .config
50+
make LLVM=-18 ARCH=loongarch loongson3_defconfig
51+
make LLVM=-18 ARCH=loongarch -j$(nproc)
52+
53+
- name: "Clang build kernel riscv rv32_defconfig"
54+
run: |
55+
# .config
56+
make LLVM=-18 ARCH=riscv rv32_defconfig
57+
make LLVM=-18 ARCH=riscv -j$(nproc)
58+

0 commit comments

Comments
 (0)