-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (51 loc) · 1.41 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
##
# @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