mirror of
https://github.com/linux-thinkpad/tp_smapi.git
synced 2024-09-11 07:05:28 +03:00
try to build with clang too
This commit is contained in:
parent
bee13fd060
commit
83ca2107dc
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -23,9 +23,15 @@ jobs:
|
||||
- master
|
||||
host:
|
||||
- ubuntu-22.04
|
||||
cc:
|
||||
- gcc
|
||||
include:
|
||||
- linux: v5.10
|
||||
host: ubuntu-20.04
|
||||
cc: gcc
|
||||
- linux: master
|
||||
host: ubuntu-22.04
|
||||
cc: clang
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@ -38,14 +44,14 @@ jobs:
|
||||
- run: sudo apt-get install -y libelf-dev ccache
|
||||
- uses: hendrikmuhs/ccache-action@v1.2
|
||||
with:
|
||||
key: ${{ matrix.linux }}
|
||||
key: ${{ matrix.linux }}-${{ matrix.cc }}
|
||||
- name: Configure kernel
|
||||
run: |
|
||||
make -C linux tinyconfig
|
||||
make -C linux tinyconfig CC=${{ matrix.cc }}
|
||||
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
|
||||
make -C linux ci.config CC=${{ matrix.cc }}
|
||||
- name: Run make -C linux CC=${{ matrix.cc }}
|
||||
run: |
|
||||
export PATH="/usr/lib/ccache:$PATH"
|
||||
make -C linux -j $(nproc)
|
||||
- run: make -C tp_smapi modules KBUILD=../linux HDAPS=1
|
||||
make -C linux -j $(nproc) CC=${{ matrix.cc }}
|
||||
- run: make -C tp_smapi modules KBUILD=../linux HDAPS=1 CC=${{ matrix.cc }}
|
||||
|
Loading…
Reference in New Issue
Block a user