Moving on to cmake-based github actions.
@@ -26,65 +26,66 @@ jobs:
msystem: MINGW64
update: true
install: git mingw-w64-x86_64-toolchain automake libtool autoconf make cmake mingw-w64-x86_64-hdf5 unzip
-###
-# Configure and build
-###
-
- - name: (Autotools) Run autoconf
- run: autoreconf -if
-
- - name: (Autotools) Configure Build
- run: ./configure --enable-hdf5 --enable-dap --disable-dap-remote-tests --disable-static --disable-plugins --disable-byterange --disable-dap-remote-tests --disable-logging
- if: ${{ success() }}
-
- - name: (Autotools) Look at config.log if error
- run: cat config.log
- if: ${{ failure() }}
- - name: (Autotools) Print Summary
- run: cat libnetcdf.settings
-
- - name: (Autotools) Build Library and Utilities
- run: make -j 8 LDFLAGS="-no-undefined -Wl,--export-all-symbols"
- if: ${{ success() }}
-
- - name: (Autotools) Build and Run Tests
- run: make check -j 8
- if: ${{ success() }}
#####
# One-Off CMake-based tests.
#####
-###
-# Configure and build
-###
- - name: Perform out-of-directory build
+
+ - name: (CMake) Perform out-of-directory build
shell: bash -l {0}
run: |
mkdir build
cd build
- cmake .. -DENABLE_DAP=TRUE -DENABLE_HDF5=TRUE -DENABLE_NCZARR=TRUE -D ENABLE_DAP_LONG_TESTS=TRUE
+ cmake .. -DENABLE_DAP=TRUE -DENABLE_HDF5=TRUE -DENABLE_NCZARR=TRUE -D ENABLE_DAP_LONG_TESTS=TRUE -DCMAKE_PREFIX_PATH=/usr
- - name: Print Summary
+ - name: (CMake) Print Summary
run: |
cd build
cat libnetcdf.settings
- - name: Build All
+ - name: (CMake) Build All
run: |
cd build
make -j 12
if: ${{ success() }}
- - name: Run Tests
+ - name: (CMake) Run Tests
run: |
cd build
ctest --output-on-failure -j 12 .
if: ${{ success() }}
- - name: Verbose Output if CTest Failure
+ - name: (CMake) Verbose Output if CTest Failure
run: |
cd build
ctest -j 12 --rerun-failed --output-on-failure -VV
if: ${{ failure() }}
+
+###
+# Configure and build
+###
+
+ - name: (Autotools) Run autoconf
+ run: autoreconf -if
+
+ - name: (Autotools) Configure Build
+ run: ./configure --enable-hdf5 --enable-dap --disable-dap-remote-tests --disable-static --disable-plugins --disable-byterange --disable-dap-remote-tests --disable-logging
+ if: ${{ success() }}
+
+ - name: (Autotools) Look at config.log if error
+ run: cat config.log
+ if: ${{ failure() }}
+
+ - name: (Autotools) Print Summary
+ run: cat libnetcdf.settings
+
+ - name: (Autotools) Build Library and Utilities
+ run: make -j 8 LDFLAGS="-no-undefined -Wl,--export-all-symbols"
+ if: ${{ success() }}
+
+ - name: (Autotools) Build and Run Tests
+ run: make check -j 8
+ if: ${{ success() }}
+
