forked from CESM-Development/cime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding strict autotools github actions workflow
- Loading branch information
1 parent
5d3d0ff
commit 1dd31fd
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |