From 7e40029936487d4e59d61e9a267862b2223745e4 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 10 Aug 2020 05:18:15 -0600 Subject: [PATCH] now trying caching for pnetcdf build --- .github/workflows/autotools.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autotools.yml b/.github/workflows/autotools.yml index 3cdc6494adf..11c4e92d43a 100644 --- a/.github/workflows/autotools.yml +++ b/.github/workflows/autotools.yml @@ -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