Skip to content

Commit

Permalink
Add runner that builds with Clang to CI.
Browse files Browse the repository at this point in the history
Building with LLVM Clang and libomp currently fails (see #486).

Add configurations to the build matrix that build with LLVM Clang without
OpenMP. Also add a runner that builds with GCC without OpenMP.
  • Loading branch information
mmuetzel committed Jul 13, 2024
1 parent 6c7258f commit 7b15e19
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,32 @@ 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-cmake-flags: "-WITH_OpenMP=OFF"

env:
CC: ${{ matrix.cc }}
Expand Down Expand Up @@ -57,7 +66,7 @@ jobs:
-DCMAKE_INSTALL_PREFIX="${GITHUB_WORKSPACE}/usr" \
-DCMAKE_Fortran_FLAGS="-Wno-argument-mismatch" \
-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 7b15e19

Please sign in to comment.