From 14672d4d0bf2d853fe3446fc9f89ada74aaf1570 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Tue, 15 Sep 2020 09:57:41 -0600 Subject: [PATCH] working on cmake test build --- .github/workflows/a4.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/a4.yml b/.github/workflows/a4.yml index 1723c37ecae..353c18088c3 100644 --- a/.github/workflows/a4.yml +++ b/.github/workflows/a4.yml @@ -117,7 +117,7 @@ jobs: make sudo make install popd - - name: autotools build + - name: cmake build run: | set -x gcc --version @@ -125,10 +125,14 @@ jobs: source .bashrc export CC=/home/runner/mpich/bin/mpicc export FC=/home/runner/mpich/bin/mpifort - autoreconf -i - ./configure --enable-fortran - make -j check - - name: cmake build + export LD_LIBRARY_PATH="/home/runner/netcdf-c/lib:$LD_LIBRARY_PATH" + 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_ENABLE_LOGGING=On -DPIO_ENABLE_TIMING=Off .. || (cat CMakeFiles/CMakeOutput.log && cat CMakeFiles/CMakeError.log) + make VERBOSE=1 + make tests VERBOSE=1 + ctest -VV + - name: autotools build run: | set -x gcc --version @@ -136,11 +140,8 @@ jobs: 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 + autoreconf -i + ./configure --enable-fortran + make -j check