Skip to content

Commit

Permalink
added cmake to test build
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Sep 15, 2020
1 parent bad9cee commit c992327
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/a4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,19 @@ jobs:
autoreconf -i
./configure --enable-fortran
make -j check
- name: cmake build
run: |
set -x
gcc --version
echo 'export PATH=/home/runner/mpich/bin:$PATH' > .bashrc
source .bashrc
export CC=/home/runner/mpich/bin/mpicc
export FC=/home/runner/mpich/bin/mpifort
mkdir build
cd build
cmake -Wno-dev -DNetCDF_C_LIBRARY=/home/runner/netcdf-c/lib/libnetcdf.so -DNetCDF_C_INCLUDE_DIR=/home/runner/netcdf-c/include -DPnetCDF_PATH='/home/runner/pnetcdf' -DPIO_ENABLE_FORTRAN=Off -DPIO_HDF5_LOGGING=On -DPIO_USE_MALLOC=On -DPIO_ENABLE_LOGGING=On -DPIO_ENABLE_TIMING=Off .. || (cat CMakeFiles/CMakeOutput.log && cat CMakeFiles/CMakeError.log)
make VERBOSE=1
make tests VERBOSE=1
ctest -VV

0 comments on commit c992327

Please sign in to comment.