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 f6c1dde
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ 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
LD_LIBRARY_PATH: ~/bml/install/lib
PROGRESS_EXAMPLES: yes
PROGRESS_OPENMP: yes
PROGRESS_TESTING: yes
Expand Down Expand Up @@ -53,6 +55,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 +86,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 f6c1dde

Please sign in to comment.