From 145456080563b0aefc6e353455f89a4e5a0f61a4 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Tue, 14 Jul 2020 13:58:15 -0600 Subject: [PATCH] working on GitHub actions build --- .github/workflows/c-cpp.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index e3233268f7f..568465f0533 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -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