Skip to content

Commit

Permalink
adding netcdf-c
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 24, 2020
1 parent 1199dd3 commit 49ab2d7
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/a3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ jobs:
if: steps.cache-hdf5.outputs.cache-hit != 'true'
run: |
set -x
ls -l /home/runner/openmpi/bin
export PATH="/home/runner/openmpi/bin:$PATH"
echo $PATH
export CC=/home/runner/openmpi/bin/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
Expand All @@ -59,5 +57,25 @@ jobs:
make
sudo make install
popd
- name: cache-netcdf-c
id: cache-netcdf-c
uses: actions/cache@v2
with:
path: ~/netcdf-c
key: netcdf-c-${{ runner.os }}-4.7.4

- name: build-netcdf-c
if: steps.cache-netcdf-c.outputs.cache-hit != 'true'
run: |
set -x
export PATH="/home/runner/openmpi/bin:$PATH"
export CC=/home/runner/openmpi/bin/mpicc
wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-c-4.7.4.tar.gz &> /dev/null
tar -xzf netcdf-c-4.7.4.tar.gz
pushd netcdf-c-4.7.4
./configure --prefix=/home/runner/netcdf-c --disable-dap --disable-utilities
make -j
sudo make install
popd
- name: autoreconf
run: autoreconf -i

0 comments on commit 49ab2d7

Please sign in to comment.