Skip to content

Commit

Permalink
now trying caching for pnetcdf build
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 10, 2020
1 parent e11337c commit 7e40029
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/autotools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,19 @@ jobs:
- name: Installs
run: |
sudo apt-get install netcdf-bin libnetcdf-dev doxygen graphviz wget gfortran libjpeg-dev libz-dev openmpi-bin libopenmpi-dev
- name: cache-pnetcdf
id: cache-pnetcdf
uses: actions/cache@v2
with:
path: ~/pnetcdf
key: pnetcdf-${{ runner.os }}-1.11.0

- name: pnetcdf build
- name: build-pnetcdf
if: steps.cache-pnetcdf.outputs.cache-hit != 'true'
run: |
wget https://parallel-netcdf.github.io/Release/pnetcdf-1.11.0.tar.gz
set -x
wget https://parallel-netcdf.github.io/Release/pnetcdf-1.11.0.tar.gz &> /dev/null
tar -xzvf pnetcdf-1.11.0.tar.gz
ls -l
pushd pnetcdf-1.11.0
./configure --prefix=/home/runner/pnetcdf --enable-shared --disable-cxx
make
Expand Down

0 comments on commit 7e40029

Please sign in to comment.