Skip to content

Commit

Permalink
updating CI
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Oct 8, 2023
1 parent 4313df0 commit a2c1644
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ jobs:
env:
FC: gfortran
CC: gcc
matrix:
config:
- {
options: "-DCMAKE_BUILD_TYPE=Debug"
}
- {
options: "-DBUILD_SHARED_LIBS=ON"
}

steps:
- name: checkout
Expand All @@ -26,13 +34,17 @@ jobs:
cd g2tmpl
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=~/g2tmpl/install ..
cmake ${{ matrix.config.options }} -DCMAKE_INSTALL_PREFIX=~/g2tmpl/install ..
make -j2 VERBOSE=1
- name: test
run: |
set -x
cd $GITHUB_WORKSPACE/g2tmpl/build
ctest --verbose --output-on-failure --rerun-failed
make install
if [ "${{ matrix.config.options }}" = "-DBUILD_SHARED_LIBS=ON" ]; then
ls -l ~/g2tmpl/install/lib/lib*.so || exit 1
else
ls -l ~/g2tmpl/install/lib/lib*.a || exit 1
fi

0 comments on commit a2c1644

Please sign in to comment.