Skip to content

Commit

Permalink
adding netcdf-fortran and pnetcdf
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 24, 2020
1 parent 49ab2d7 commit 35dda9d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/a3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,45 @@ jobs:
make -j
sudo make install
popd
- name: cache-netcdf-fortran
id: cache-netcdf-fortran
uses: actions/cache@v2
with:
path: ~/netcdf-fortran
key: netcdf-fortran-${{ runner.os }}-4.5.3

- name: build-netcdf-fortran
if: steps.cache-netcdf-fortran.outputs.cache-hit != 'true'
run: |
set -x
export PATH="/home/runner/openmpi/bin:$PATH"
export CC=/home/runner/openmpi/bin/mpicc
wget https://github.com/Unidata/netcdf-fortran/archive/v4.5.3.tar.gz &> /dev/null
tar -xzf v4.5.3.tar.gz
pushd netcdf-fortran-4.5.3
./configure --prefix=/home/runner/netcdf-fortran
make -j
sudo make install
popd
- name: cache-pnetcdf
id: cache-pnetcdf
uses: actions/cache@v2
with:
path: ~/pnetcdf
key: pnetcdf-${{ runner.os }}-1.12.1

- name: build-pnetcdf
if: steps.cache-pnetcdf.outputs.cache-hit != 'true'
run: |
set -x
export PATH="/home/runner/openmpi/bin:$PATH"
export CC=/home/runner/openmpi/bin/mpicc
wget https://parallel-netcdf.github.io/Release/pnetcdf-1.12.1.tar.gz &> /dev/null
tar -xzf pnetcdf-1.12.1.tar.gz
pushd pnetcdf-1.12.1
./configure --prefix=/home/runner/pnetcdf --enable-shared --disable-cxx
make
sudo make install
popd
- name: autoreconf
run: autoreconf -i

0 comments on commit 35dda9d

Please sign in to comment.