Skip to content

Commit

Permalink
Merge pull request ESMCI#1680 from NCAR/ejh_fix_test
Browse files Browse the repository at this point in the history
adding strict autotools build to GitHub actions CI testing
  • Loading branch information
edwardhartnett authored Jul 29, 2020
2 parents cb4ea89 + 3f10bbc commit 7b2f0d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/strict_autotools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
CC: mpicc
FC: mpifort
CPPFLAGS: "-I/usr/include -I/usr/local/include"
DISTCHECK_CONFIGURE_FLAGS: "--enable-fortran"

steps:
- uses: actions/checkout@v2
Expand All @@ -29,18 +28,20 @@ jobs:
tar -xzvf pnetcdf-1.12.1.tar.gz
ls -l
pushd pnetcdf-1.12.1
./configure --prefix=/usr --enable-shared
./configure --prefix=/usr --enable-shared --disable-cxx
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 -j distcheck
run: make -j distcheck
run: |
export CFLAGS="-std=c99 -fsanitize=address -fno-omit-frame-pointer -Werror"
export FFLAGS="-fsanitize=address -fno-omit-frame-pointer -Werror"
export FCFLAGS="-fsanitize=address -fno-omit-frame-pointer -Werror"
./configure
- name: make -j distcheck
run: |
export DISTCHECK_CONFIGURE_FLAGS="--enable-fortran"
make -j distcheck
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -407,3 +407,5 @@ AC_OUTPUT(Makefile

# Show the build summary.
cat libpio.settings


0 comments on commit 7b2f0d1

Please sign in to comment.