Added a one-off stanza for autoconf-based tests on Github Actions.
@@ -250,3 +250,87 @@ jobs:
cd build
LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ctest -j 12 .
if: ${{ success() }}
+
+
+###
+# Autotools-based one-off tests.
+####
+ nc-ac-tests-oneoff:
+
+ needs: build-deps
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ hdf5: [ 1.10.7 ]
+ use_nc4: [ nc4 ]
+ use_dap: [ dap_on ]
+ use_nczarr: [ nczarr_on ]
+ 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 "CFLAGS=-I${HOME}/environments/${{ matrix.hdf5 }}/include" >> $GITHUB_ENV
+ - run: echo "LDFLAGS=-L${HOME}/environments/${{ matrix.hdf5 }}/lib" >> $GITHUB_ENV
+ - run: echo "LD_LIBRARY_PATH=${HOME}/environments/${{ matrix.hdf5 }}/lib" >> $GITHUB_ENV
+
+
+###
+# Fetch Cache
+###
+
+ - name: Fetch HDF Cache
+ id: cache-hdf
+ 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: Run autoconf
+ shell: bash -l {0}
+ run: autoreconf -if
+
+ - name: Configure
+ shell: bash -l {0}
+ run: CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ./configure --enable-hdf4 --enable-hdf5 --enable-dap --enable-dap-long-tests
+ if: ${{ success() }}
+
+ - name: Look at config.log if error
+ shell: bash -l {0}
+ run: cat config.log
+ if: ${{ failure() }}
+
+ - name: Print Summary
+ shell: bash -l {0}
+ run: cat libnetcdf.settings
+
+ - name: Build Library and Utilities
+ shell: bash -l {0}
+ run: CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make -j
+ if: ${{ success() }}
+
+ - name: Build Tests
+ shell: bash -l {0}
+ run: CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make check TESTS="" -j
+ if: ${{ success() }}
+
+ - name: Run Tests
+ shell: bash -l {0}
+ run: CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make check -j
+ if: ${{ success() }}
