Propagate github actions tests into cmake-based stanza.
@@ -263,9 +263,6 @@ jobs:
strategy:
matrix:
hdf5: [ 1.10.7 ]
- use_nc4: [ nc4 ]
- use_dap: [ dap_on ]
- use_nczarr: [ nczarr_on ]
steps:
- uses: actions/checkout@v2
@@ -334,3 +331,73 @@ jobs:
shell: bash -l {0}
run: CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make check -j
if: ${{ success() }}
+
+nc-cmake-tests-oneoff:
+
+ needs: build-deps
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ hdf5: [ 1.10.7]
+
+ steps:
+
+ - uses: actions/checkout@v2
+
+ - name: Install System dependencies
+ shell: bash -l {0}
+ run: sudo apt update && sudo apt install -y libaec-dev zlib1g-dev automake autoconf libcurl4-openssl-dev libjpeg-dev wget curl bzip2 m4 flex bison cmake libzip-dev
+
+###
+# Set Environmental Variables
+###
+
+ - run: echo "CMAKE_PREFIX_PATH=${HOME}/environments/${{ matrix.hdf5 }}/" >> $GITHUB_ENV
+ - run: echo "LD_LIBRARY_PATH=${HOME}/environments/${{ matrix.hdf5 }}/lib" >> $GITHUB_ENV
+
+###
+# Fetch Cache
+###
+
+ - name: Fetch HDF Cache
+ id: cache-hdf5
+ uses: actions/cache@v2
+ with:
+ path: ~/environments/${{ matrix.hdf5 }}
+ key: hdf5-${{ runner.os }}-${{ matrix.hdf5 }}
+
+ - name: Check Cache
+ shell: bash -l {0}
+ run: ls ${HOME}/environments && ls ${HOME}/environments/${{ matrix.hdf5 }} && ls ${HOME}/environments/${{ matrix.hdf5}}/lib
+
+###
+# Configure and build
+###
+
+ - name: Perform out-of-directory build
+ shell: bash -l {0}
+ run: |
+ mkdir build
+ cd build
+ LD_LIBRARY_PATH=${LD_LIBRARY_PATH} cmake .. -DENABLE_HDF4=TRUE -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DENABLE_DAP=TRUE -DENABLE_HDF5=TRUE -DENABLE_NCZARR=TRUE -D ENABLE_DAP_LONG_TESTS=TRUE
+
+ - name: Print Summary
+ shell: bash -l {0}
+ run: |
+ cd build
+ cat libnetcdf.settings
+
+ - name: Build All
+ shell: bash -l {0}
+ run: |
+ cd build
+ LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make -j 12
+ if: ${{ success() }}
+
+ - name: Run Tests
+ shell: bash -l {0}
+ run: |
+ cd build
+ LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ctest -j 12 .
+ if: ${{ success() }}
\ No newline at end of file
