From 480a39fee6ba373d3520198c056ad9afee844e56 Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Wed, 13 Dec 2023 19:12:23 +0200 Subject: [PATCH] Add c_compiler --- .github/workflows/c-cpp.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index bc03eea0..929481cc 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -16,6 +16,22 @@ jobs: os: [ubuntu-latest, ubuntu-20.04, windows-latest] build_type: [Release, Debug] cpp_compiler: [g++, clang++, cl] + include: + - os: windows-latest + cpp_compiler: cl + c_compiler: cl + - os: ubuntu-latest + cpp_compiler: g++ + c_compiler: gcc + - os: ubuntu-latest + cpp_compiler: clang++ + c_compiler: clang + - os: ubuntu-20.04 + cpp_compiler: g++ + c_compiler: gcc + - os: ubuntu-20.04 + cpp_compiler: clang++ + c_compiler: clang exclude: - os: windows-latest cpp_compiler: g++ @@ -40,6 +56,7 @@ jobs: run: > cmake -B ${{ steps.strings.outputs.build-output-dir }} -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} + -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DELFIO_BUILD_EXAMPLES=YES -DELFIO_BUILD_TESTS=YES -S ${{ github.workspace }}