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
|
|
|
|
|
2022-07-01 04:01:45 +08:00
|
|
|
env:
|
|
|
|
CPPFLAGS: "-D_BSD_SOURCE"
|
2022-01-25 01:51:19 +08:00
|
|
|
|
2022-07-01 04:01:45 +08:00
|
|
|
on: [push, pull_request, workflow_dispatch]
|
2022-01-25 01:51:19 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
2022-07-12 03:42:07 +08:00
|
|
|
build-and-test-autotools:
|
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-07-05 23:24:38 +08:00
|
|
|
run: ./configure --enable-hdf5 --enable-dap --disable-dap-remote-tests --disable-static --disable-byterange --disable-dap-remote-tests --disable-logging --enable-plugins --disable-nczarr-filters --disable-nczarr-s3 --disable-nczarr-s3-tests
|
2022-01-25 06:47:27 +08:00
|
|
|
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
|
2022-07-01 20:32:46 +08:00
|
|
|
run: make -j 8 LDFLAGS="-Wl,--export-all-symbols"
|
2022-01-25 06:47:27 +08:00
|
|
|
if: ${{ success() }}
|
|
|
|
|
2022-07-01 20:32:46 +08:00
|
|
|
- name: Check for plugins
|
|
|
|
run: |
|
|
|
|
dir ./plugins
|
|
|
|
dir ./plugins/.libs
|
|
|
|
|
2022-01-25 06:47:27 +08:00
|
|
|
- name: (Autotools) Build and Run Tests
|
2022-07-01 20:32:46 +08:00
|
|
|
run: make check -j 8 LDFLAGS="-Wl,--export-all-symbols"
|
2022-01-25 06:47:27 +08:00
|
|
|
if: ${{ success() }}
|
2022-07-01 20:32:46 +08:00
|
|
|
id: tests
|
|
|
|
|
|
|
|
- name: Upload test failures
|
|
|
|
if: ${{ failure() && steps.tests.conclusion == 'failure' }}
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2022-07-12 03:42:07 +08:00
|
|
|
name: mingw-autotools-test-logs
|
2022-07-01 20:32:46 +08:00
|
|
|
path: |
|
|
|
|
*/*.log
|
|
|
|
*/*.trs
|