Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and test shared libraries #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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