Skip to content

Commit

Permalink
Build and test shared libraries
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Bock <[email protected]>
  • Loading branch information
nicolasbock committed Jun 24, 2021
1 parent aa50e51 commit 8ec4d9e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ env:
FC: gfortran-10
CXX: g++-10
CMAKE_BUILD_TYPE: Debug
BUILD_SHARED_LIBS: no
PKG_CONFIG_PATH: ~/bml/install/lib/pkgconfig:~/bml/install/lib64/pkgconfig
PROGRESS_EXAMPLES: yes
PROGRESS_OPENMP: yes
Expand Down Expand Up @@ -53,6 +54,28 @@ jobs:
OMP_NUM_THREADS: 4
CMAKE_BUILD_TYPE: Release
COMMAND: testing
- JOBNAME: graphlib, shared lib, debug
PROGRESS_GRAPHLIB: no
BUILD_SHARED_LIBS: yes
OMP_NUM_THREADS: 4
COMMAND: testing
- JOBNAME: without graphlib, shared lib, debug
PROGRESS_GRAPHLIB: yes
BUILD_SHARED_LIBS: yes
OMP_NUM_THREADS: 4
COMMAND: testing
- JOBNAME: graphlib, shared lib, release
PROGRESS_GRAPHLIB: no
BUILD_SHARED_LIBS: yes
OMP_NUM_THREADS: 4
CMAKE_BUILD_TYPE: Release
COMMAND: testing
- JOBNAME: without graphlib, shared lib, release
PROGRESS_GRAPHLIB: yes
BUILD_SHARED_LIBS: yes
OMP_NUM_THREADS: 4
CMAKE_BUILD_TYPE: Release
COMMAND: testing
steps:
- name: Check out sources
uses: actions/checkout@v1
Expand All @@ -62,13 +85,15 @@ jobs:
CC: ${{ matrix.CC || env.CC }}
FC: ${{ matrix.FC || env.FC }}
CXX: ${{ matrix.CXX || env.CXX }}
BUILD_SHARED_LIBS: ${{ matrix.BUILD_SHARED_LIBS || env.BUILD_SHARED_LIBS }}
CMAKE_BUILD_TYPE: ${{ matrix.CMAKE_BUILD_TYPE || env.CMAKE_BUILD_TYPE }}
run: ./scripts/install-bml.sh
- name: Build and test library
env:
CC: ${{ matrix.CC || env.CC }}
FC: ${{ matrix.FC || env.FC }}
CXX: ${{ matrix.CXX || env.CXX }}
BUILD_SHARED_LIBS: ${{ matrix.BUILD_SHARED_LIBS || env.BUILD_SHARED_LIBS }}
PROGRESS_GRAPHLIB: ${{ matrix.PROGRESS_GRAPHLIB || env.PROGRESS_GRAPHLIB }}
OMP_NUM_THREADS: ${{ matrix.OMP_NUM_THREADS || env.OMP_NUM_THREADS }}
CMAKE_BUILD_TYPE: ${{ matrix.CMAKE_BUILD_TYPE || env.CMAKE_BUILD_TYPE }}
Expand Down

0 comments on commit 8ec4d9e

Please sign in to comment.