Skip to content

Commit

Permalink
Merge pull request #1661 from NCAR/ejh_actions
Browse files Browse the repository at this point in the history
working on GitHub actions build
  • Loading branch information
edwardhartnett authored Jul 14, 2020
2 parents 5244094 + 1454560 commit c3e2839
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,33 @@ jobs:

runs-on: ubuntu-latest

env:
CC: mpicc
FC: mpifort
CPPFLAGS: "-I/usr/include -I/usr/local/include"
# CFLAGS: "-std=c99 -fsanitize=address -fno-omit-frame-pointer -Werror"
# FFLAGS: "-fsanitize=address -fno-omit-frame-pointer"
# FCFLAGS: "-fsanitize=address -fno-omit-frame-pointer -Werror"

steps:
- uses: actions/checkout@v2
- name: Installs
run: |
sudo apt-get install netcdf-bin libnetcdf-dev doxygen graphviz wget gfortran libjpeg-dev libz-dev openmpi-bin libopenmpi-dev
- name: pnetcdf build
run: |
wget https://parallel-netcdf.github.io/Release/pnetcdf-1.11.0.tar.gz
tar -xzvf pnetcdf-1.11.0.tar.gz
ls -l
pushd pnetcdf-1.11.0
./configure --prefix=/usr --enable-shared
make
sudo make install
popd
- name: autoreconf
run: autoreconf -i
- name: configure
run: ./configure
- name: make
Expand Down

0 comments on commit c3e2839

Please sign in to comment.