Merge pull request #30 from xLPMG/develop #604
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
## | |
# @author Alexander Breuer (alex.breuer AT uni-jena.de) | |
# @section DESCRIPTION | |
# Continuous integration using GitHub Actions. | |
## | |
name: Tsunami Lab | |
on: | |
push: | |
branches: | |
- 'develop' | |
- 'main' | |
pull_request: | |
branches: | |
- 'develop' | |
- 'main' | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install scons | |
sudo apt-get install valgrind | |
sudo apt-get install cppcheck | |
sudo apt-get install libnetcdf-dev | |
sudo apt-get install libomp-dev | |
git submodule init | |
git submodule update | |
- name: Static Code Analysis | |
run: | |
cppcheck src/ --template=gcc --force --error-exitcode=1 | |
- name: Sanitize | |
run: | | |
scons mode=debug+san omp=gnu gui=no | |
./build/tests | |
./build/tsunami_lab configs/minimalConfig.json | |
scons mode=release+san omp=gnu gui=no | |
./build/tests | |
./build/tsunami_lab configs/minimalConfig.json | |
- name: Valgrind | |
run: | | |
scons mode=debug omp=gnu gui=no | |
valgrind ./build/tests | |
valgrind ./build/tsunami_lab configs/minimalConfig.json | |
- name: Release | |
run: | | |
scons omp=gnu gui=no | |
./build/tests | |
./build/tsunami_lab configs/minimalConfig.json |