Skip to content

Commit

Permalink
adding cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Jul 29, 2020
1 parent 7b2f0d1 commit 6da9b11
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: cmake

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

env:
CC: mpicc
FC: mpifort
CPPFLAGS: "-I/usr/include -I/usr/local/include"

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.12.1.tar.gz
tar -xzvf pnetcdf-1.12.1.tar.gz
ls -l
pushd pnetcdf-1.12.1
./configure --prefix=/usr --enable-shared --disable-cxx
make
sudo make install
popd
- name: cmake build
run: |
which ncdump
mkdir build
cd build
cmake -Wno-dev -DCMAKE_PREFIX_PATH=/usr -DPIO_HDF5_LOGGING=On -DPIO_USE_MALLOC=On -DPIO_ENABLE_LOGGING=On -DPIO_ENABLE_TIMING=Off ..
make VERBOSE=1
make tests VERBOSE=1
ctest -VV

0 comments on commit 6da9b11

Please sign in to comment.