-
Notifications
You must be signed in to change notification settings - Fork 33
48 lines (39 loc) · 1.07 KB
/
tests.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
name: GitHub CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
debug:
runs-on: ubuntu-latest
container:
image: dealii/dealii:v9.5.0-jammy
options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
steps:
- uses: actions/checkout@v2
- name: Test debug
run: |
rm -rf build_linux_debug
mkdir build_linux_debug
cd build_linux_debug
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug
ninja
ctest -N
ctest --output-on-failure
release:
runs-on: ubuntu-latest
container:
image: dealii/dealii:v9.5.0-jammy
options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
steps:
- uses: actions/checkout@v2
- name: Test release
run: |
rm -rf build_linux_release
mkdir build_linux_release
cd build_linux_release
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release
ninja
ctest -N
ctest --output-on-failure