diff --git a/.github/workflows/strict_autotools.yml b/.github/workflows/strict_autotools.yml new file mode 100644 index 00000000000..c5c83130053 --- /dev/null +++ b/.github/workflows/strict_autotools.yml @@ -0,0 +1,52 @@ +name: strict_autotools + +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" +# 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 + env: + 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" + - name: make + run: make + - name: make check + run: make check + - name: make distcheck + run: make distcheck