Skip to content

Commit

Permalink
try to build with clang too
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed May 20, 2024
1 parent bee13fd commit 650c25f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ jobs:
- master
host:
- ubuntu-22.04
cc:
- gcc
include:
- linux: v5.10
host: ubuntu-20.04
- linux: master
host: ubuntu-22.04
cc: clang
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -38,14 +43,14 @@ jobs:
- run: sudo apt-get install -y libelf-dev ccache
- uses: hendrikmuhs/[email protected]
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 }}

0 comments on commit 650c25f

Please sign in to comment.