Tsunami Lab #228
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: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: 0 0 * * * | |
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 | |
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 | |
./build/tests | |
./build/tsunami_lab 25 | |
scons mode=release+san | |
./build/tests | |
./build/tsunami_lab 500 | |
- name: Valgrind | |
run: | | |
scons mode=debug | |
valgrind ./build/tests | |
valgrind ./build/tsunami_lab 25 | |
- name: Release | |
run: | | |
scons | |
./build/tests | |
./build/tsunami_lab 500 |