Skip to content

Updated testing and 1.14 requirements #549

Updated testing and 1.14 requirements

Updated testing and 1.14 requirements #549

Workflow file for this run

name: Mac with MPICH
on:
push:
branches: [ master, dev ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/*.jpg'
- '**/*.png'
- 'docs/*'
- 'case_studies/*'
pull_request:
branches: [ master, dev ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/*.jpg'
- '**/*.png'
- 'docs/*'
- 'case_studies/*'
env:
MPICH_VERSION: 4.1.2
NETCDF_VERSION: 4.9.2
jobs:
build:
runs-on: macos-latest
timeout-minutes: 60
steps:
- uses: actions/[email protected]
- name: Set up dependencies
run: |
brew instal automake autoconf libtool m4 open-mpi zlib
- name: Install HDF5
run: |
cd ${GITHUB_WORKSPACE}
rm -rf HDF5 ; mkdir HDF5 ; cd HDF5
wget -cq https://github.com/HDFGroup/hdf5/releases/latest/download/hdf5.tar.gz
tar -zxf hdf5.tar.gz
cd hdf5-*
./configure --prefix=${GITHUB_WORKSPACE}/HDF5 \
--silent \
--enable-parallel \
--enable-build-mode=production \
--enable-unsupported \
--enable-threadsafe \
--disable-doxygen-doc \
--disable-doxygen-man \
--disable-doxygen-html \
--disable-tests \
--disable-fortran \
--disable-cxx \
CC=mpicc
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1
make -s -j 8 distclean >> qout 2>&1
- name: Install NetCDF
run: |
cd ${GITHUB_WORKSPACE}
rm -rf /NetCDF ; mkdir NetCDF ; cd NetCDF
wget -qc https://github.com/Unidata/netcdf-c/archive/refs/tags/v${NETCDF_VERSION}.tar.gz
tar -zxf v${NETCDF_VERSION}.tar.gz
cd netcdf-c-${NETCDF_VERSION}
./configure --prefix=${GITHUB_WORKSPACE}/NetCDF \
--silent \
--disable-dap \
--disable-nczarr \
--disable-nczarr-filters \
--disable-filter-testing \
--disable-byterange \
CC=mpicc \
CPPFLAGS="-I${GITHUB_WORKSPACE}/HDF5/include" \
LDFLAGS="-L${GITHUB_WORKSPACE}/HDF5/lib" \
LIBS="-lhdf5"
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1
make -s -j 8 distclean >> qout 2>&1
- name: Configure Log VOL connector
run: |
cd ${GITHUB_WORKSPACE}
autoreconf -i
./configure --with-hdf5=${GITHUB_WORKSPACE}/HDF5 \
--enable-test-netcdf4=${GITHUB_WORKSPACE}/NetCDF \
CFLAGS="-O0 -g" CXXFLAGS="-O0 -g -std=c++14" LIBS=-lstdc++
# Do NOT test QMCPACK, as it requires FFTW which fails to build
- name: Print config.log if error
if: ${{ failure() }}
run: |
cd ${GITHUB_WORKSPACE}
cat config.log
- name: Build Log VOL connector
if: ${{ success() }}
run: |
cd ${GITHUB_WORKSPACE}
make -j 8
# Do NOT parallel build, cmake for external tests can fail
make tests
# Skip all test runs for unknown reason of programs hanging
# Do NOT test QMCPACK, as it requires FFTW which fails to build
# Do NOT test hdf5-iotest, as uuid_generate_time_safe not available on mac osx
# make check
# make ptest
# make -s V=1 LIBTOOLFLAGS=--silent distcheck DISTCHECK_CONFIGURE_FLAGS="--silent --with-hdf5=${GITHUB_WORKSPACE}/HDF5 --enable-shared CXXFLAGS='-O0 -g -std=c++14' LIBS=-lstdc++"
- name: make distclean
if: ${{ always() }}
run: |
cd ${GITHUB_WORKSPACE}
make -s distclean