Skip to content

Commit

Permalink
added cmake build to a4.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 31, 2020
1 parent adbb0d8 commit c6c6138
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/a4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,18 @@ jobs:
autoreconf -i
./configure --enable-fortran
make -j check
- name: cmake build
run: |
set -x
echo 'export PATH=/home/runner/mpich/bin:$PATH' > .bashrc
source .bashrc
export CC=mpicc
mkdir build
cd build
export LD_LIBRARY_PATH="/home/runner/netcdf-c/lib:/home/runner/pnetcdf/lib:/home/runner/hdf5/lib:/home/runner/mpich/lib:$LD_LIBRARY_PATH"
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)
cat config.h
make VERBOSE=1
make tests VERBOSE=1
ctest -VV

0 comments on commit c6c6138

Please sign in to comment.