Skip to content

Commit

Permalink
Add gcc-9 CI test
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
  • Loading branch information
nicolasbock committed Jan 12, 2022
1 parent 5d85981 commit 07ff7c5
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
workflow_dispatch:

env:
TEST_SETTINGS:
TEST_SETTINGS: ""

jobs:
lint:
Expand All @@ -43,13 +43,29 @@ jobs:
fail-fast: false
matrix:
include:
- JOBNAME: with graphlib, debug
- JOBNAME: with graphlib, debug, gcc-9
COMPILER_VERSION: 9
TEST_SETTINGS: ./scripts/ci-with-graphlib-debug.sh
- JOBNAME: without graphlib, debug
- JOBNAME: without graphlib, debug, gcc-9
COMPILER_VERSION: 9
TEST_SETTINGS: ./scripts/ci-without-graphlib-debug.sh
- JOBNAME: with graphlib, release
- JOBNAME: with graphlib, debug, gcc-10
COMPILER_VERSION: 10
TEST_SETTINGS: ./scripts/ci-with-graphlib-debug.sh
- JOBNAME: without graphlib, debug, gcc-10
COMPILER_VERSION: 10
TEST_SETTINGS: ./scripts/ci-without-graphlib-debug.sh
- JOBNAME: with graphlib, release, gcc-9
COMPILER_VERSION: 9
TEST_SETTINGS: ./scripts/ci-with-graphlib-release.sh
- JOBNAME: without graphlib, release, gcc-9
COMPILER_VERSION: 9
TEST_SETTINGS: ./scripts/ci-without-graphlib-release.sh
- JOBNAME: with graphlib, release, gcc-10
COMPILER_VERSION: 10
TEST_SETTINGS: ./scripts/ci-with-graphlib-release.sh
- JOBNAME: without graphlib, release
- JOBNAME: without graphlib, release, gcc-10
COMPILER_VERSION: 10
TEST_SETTINGS: ./scripts/ci-without-graphlib-release.sh
steps:
- name: Check out sources
Expand All @@ -58,12 +74,19 @@ jobs:
- name: Install bml master
env:
TEST_SETTINGS: ${{ matrix.TEST_SETTINGS || env.TEST_SETTINGS }}
COMPILER_VERSION: ${{ matrix.COMPILER_VERSION || env.COMPILER_VERSION }}
run: ./scripts/install-bml.sh
- name: Build and test library
env:
TEST_SETTINGS: ${{ matrix.TEST_SETTINGS || env.TEST_SETTINGS }}
COMPILER_VERSION: ${{ matrix.COMPILER_VERSION || env.COMPILER_VERSION }}
run: |
[[ -f ${TEST_SETTINGS} ]] && source ${TEST_SETTINGS}
if [[ -v COMPILER_VERSION && -n ${COMPILER_VERSION} ]]; then
export CC=gcc-${COMPILER_VERSION}
export CXX=g++-${COMPILER_VERSION}
export FC=gfortran-${COMPILER_VERSION}
fi
./build.sh ${COMMAND}
- name: Run gpmd example
run: |
Expand Down

0 comments on commit 07ff7c5

Please sign in to comment.