Skip to content

Commit

Permalink
Merge pull request #487 from mmuetzel/ci-clang
Browse files Browse the repository at this point in the history
Add runner that builds with Clang to CI.
  • Loading branch information
raback authored Jul 31, 2024
2 parents c8bd4a3 + 71ed304 commit 146b859
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: [with, 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 @@ -59,7 +74,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=ON \
-DWITH_Mumps=ON \
Expand Down

0 comments on commit 146b859

Please sign in to comment.