-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (47 loc) · 1.15 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
##
# @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