Skip to content

Commit

Permalink
Add runners that builds with Clang to CI.
Browse files Browse the repository at this point in the history
Add configurations to the build matrix that build with LLVM Clang with
and without OpenMP.
Also add a runner that builds with GCC without OpenMP.
  • Loading branch information
mmuetzel committed Jul 25, 2024
1 parent 14ca230 commit a87c3bd
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,38 @@ jobs:
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
runs-on: ubuntu-latest

name: ubuntu (${{ matrix.compiler }})
name: ubuntu (${{ matrix.compiler }} ${{ matrix.openmp }} OpenMP)

strategy:
# Allow other runners in the matrix to continue if some fail
fail-fast: false

matrix:
compiler: [gcc]
compiler: [gcc, clang]
openmp: [without]
include:
- compiler: gcc
compiler-pkgs: "g++ gcc"
cc: "gcc"
cxx: "g++"
#- compiler: clang
# compiler-pkgs: "clang libomp-dev"
# cc: "clang"
# cxx: "clang++"
openmp: with
openmp-cmake-flags: "-WITH_OpenMP=ON"
- compiler: gcc
compiler-pkgs: "g++ gcc"
cc: "gcc"
cxx: "g++"
openmp-cmake-flags: "-WITH_OpenMP=OFF"
- compiler: clang
compiler-pkgs: "clang"
cc: "clang"
cxx: "clang++"
openmp: with
openmp-cmake-flags: "-WITH_OpenMP=ON -DOpenMP_C_FLAGS=-fopenmp=libgomp -DOpenMP_CXX_FLAGS=-fopenmp=libgomp"
- compiler: clang
compiler-pkgs: "clang"
cc: "clang"
cxx: "clang++"
openmp-cmake-flags: "-WITH_OpenMP=OFF"

env:
CC: ${{ matrix.cc }}
Expand Down Expand Up @@ -57,7 +72,7 @@ jobs:
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX="${GITHUB_WORKSPACE}/usr" \
-DBLA_VENDOR="OpenBLAS" \
-DWITH_OpenMP=ON \
${{ matrix.openmp-cmake-flags }} \
-DWITH_LUA=ON \
-DWITH_Zoltan=OFF \
-DWITH_Mumps=ON \
Expand Down

0 comments on commit a87c3bd

Please sign in to comment.