Skip to content

Commit ebafd65

Browse files
committed
try to build with clang too
1 parent a6122c0 commit ebafd65

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
- master
2424
host:
2525
- ubuntu-22.04
26+
cc:
27+
- gcc
28+
include:
29+
- linux: master
30+
host: ubuntu-24.04
31+
cc: clang
2632
steps:
2733
- uses: actions/checkout@v4
2834
with:
@@ -35,14 +41,14 @@ jobs:
3541
- run: sudo apt-get install -y libelf-dev ccache
3642
- uses: hendrikmuhs/ccache-action@v1.2
3743
with:
38-
key: ${{ matrix.linux }}
44+
key: ${{ matrix.linux }}-${{ matrix.cc }}
3945
- name: Configure kernel
4046
run: |
41-
make -C linux tinyconfig
47+
make -C linux tinyconfig CC=${{ matrix.cc }}
4248
echo -e "CONFIG_64BIT=y\nCONFIG_X86_64=y\nCONFIG_MODULES=y\nCONFIG_INPUT=y" > linux/kernel/configs/ci.config
43-
make -C linux ci.config
44-
- name: Run make -C linux
49+
make -C linux ci.config CC=${{ matrix.cc }}
50+
- name: Run make -C linux CC=${{ matrix.cc }}
4551
run: |
4652
export PATH="/usr/lib/ccache:$PATH"
47-
make -C linux -j $(nproc)
48-
- run: make -C tp_smapi modules KBUILD=../linux HDAPS=1
53+
make -C linux -j $(nproc) CC=${{ matrix.cc }}
54+
- run: make -C tp_smapi modules KBUILD=../linux HDAPS=1 CC=${{ matrix.cc }}

0 commit comments

Comments
 (0)