Add c_compiler

This commit is contained in:
Serge Lamikhov-Center 2023-12-13 19:12:23 +02:00 committed by GitHub
parent 4c4e774cd8
commit 480a39fee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,22 @@ jobs:
os: [ubuntu-latest, ubuntu-20.04, windows-latest] os: [ubuntu-latest, ubuntu-20.04, windows-latest]
build_type: [Release, Debug] build_type: [Release, Debug]
cpp_compiler: [g++, clang++, cl] 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: exclude:
- os: windows-latest - os: windows-latest
cpp_compiler: g++ cpp_compiler: g++
@ -40,6 +56,7 @@ jobs:
run: > run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }} cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DELFIO_BUILD_EXAMPLES=YES -DELFIO_BUILD_TESTS=YES -DELFIO_BUILD_EXAMPLES=YES -DELFIO_BUILD_TESTS=YES
-S ${{ github.workspace }} -S ${{ github.workspace }}