2022-01-25 01:51:19 +08:00
|
|
|
###
|
|
|
|
# Build hdf4, hdf5 dependencies and cache them in a combined directory.
|
|
|
|
# See https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
|
|
|
|
# for information related to github runners.
|
|
|
|
###
|
|
|
|
|
|
|
|
name: Run MSYS2, MinGW64-based Tests
|
|
|
|
|
|
|
|
|
Fix some problems with PR https://github.com/Unidata/netcdf-c/pull/2492
re: PR https://github.com/Unidata/netcdf-c/pull/2492
re: Issue https://github.com/Unidata/netcdf-c/issues/2494
This PR fixes some problems with the pull request https://github.com/Unidata/netcdf-c/pull/2492 in response to Issue https://github.com/Unidata/netcdf-c/issues/2494.
* Found and fixed more scalar handling problems and add a test case for scalars.
* Cleanup nczarr_test/run_string.sh test
* Document *_nczarr_default_maxstrlen* and *_nczarr_maxstrlen*.
* Support both "Nan" and *Nan* as being floating point constants
for attributes. It is unclear from the Zarr V2 spec if
unquoted *Nan* is legal or not, but support for reading.
Write the quoted versions when writing an attribute. Similar
for Infinity constants.
So NCZarr supports the following constants for use in Attributes
* *Nan*, "Nan", *-Nan*, "-Nan"
* *Nanf*, "Nanf", *-Nanf*, "-Nanf"
* *Infinity*, "Infinity", *-Infinity*, "-Infinity"
* *Infinityf*, "Infinityf", *-Infinityf*, "-Infinityf"
2022-09-04 04:21:48 +08:00
|
|
|
on: [pull_request, workflow_dispatch]
|
2022-01-25 01:51:19 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
2022-01-25 04:18:05 +08:00
|
|
|
build-and-test:
|
2022-01-25 01:51:19 +08:00
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: msys2 {0}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
msystem: MINGW64
|
|
|
|
update: true
|
2022-06-22 07:05:47 +08:00
|
|
|
install: git mingw-w64-x86_64-toolchain automake libtool autoconf make cmake mingw-w64-x86_64-hdf5 unzip mingw-w64-x86_64-libxml2
|
2022-01-25 01:51:19 +08:00
|
|
|
|
2022-01-25 06:47:27 +08:00
|
|
|
###
|
|
|
|
# Configure and build
|
|
|
|
###
|
|
|
|
|
|
|
|
- name: (Autotools) Run autoconf
|
|
|
|
run: autoreconf -if
|
|
|
|
|
2022-01-25 07:31:34 +08:00
|
|
|
- name: (Autotools) Configure Build
|
2022-01-25 06:47:27 +08:00
|
|
|
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() }}
|