Skip to content

Commit

Permalink
adding HDF5
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 24, 2020
1 parent 2b766e2 commit dc6eb09
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/a3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
runs-on: ubuntu-latest

env:
CPPFLAGS: "-I/home/runner/hdf5/include -I/home/runner/netcdf-c/include -I/home/runner/netcdf-fortran/include -I/home/runner/pnetcdf/include"
LDFLAGS: "-L/home/runner/hdf5/lib -L/home/runner/netcdf-c/lib -L/home/runner/netcdf-fortran/lib -L/home/runner/pnetcdf/lib"
PATH: "/home/runner/openmpi/bin:$PATH"
CPPFLAGS: "-I/home/runner/openmpi/include -I/home/runner/hdf5/include -I/home/runner/netcdf-c/include -I/home/runner/netcdf-fortran/include -I/home/runner/pnetcdf/include"
LDFLAGS: "-L/home/runner/openmpi/lib -L/home/runner/hdf5/lib -L/home/runner/netcdf-c/lib -L/home/runner/netcdf-fortran/lib -L/home/runner/pnetcdf/lib"

steps:
- uses: actions/checkout@v2
Expand All @@ -37,5 +38,23 @@ jobs:
make
sudo make install
popd
- name: cache-hdf5
id: cache-hdf5
uses: actions/cache@v2
with:
path: ~/hdf5
key: hdf5-${{ runner.os }}-1.10.6

- name: build-hdf5
if: steps.cache-hdf5.outputs.cache-hit != 'true'
run: |
export CC=mpicc
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.gz &> /dev/null
tar -xzf hdf5-1.10.6.tar.gz
pushd hdf5-1.10.6
./configure --prefix=/home/runner/hdf5 --enable-parallel --disable-tools --disable-fortran --disable-cxx
make
sudo make install
popd
- name: autoreconf
run: autoreconf -i

0 comments on commit dc6eb09

Please sign in to comment.