-
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (39 loc) · 1.16 KB
/
build-and-test.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
name: Build and test
on:
pull_request:
push:
branches:
- develop
- main
jobs:
build-and-test:
strategy:
max-parallel: 2
matrix:
dumux_version: [3.7, 3.8]
precice_version: [develop]
container:
image: precice/dumux-precice:${{ matrix.dumux_version }}-${{ matrix.precice_version }}
runs-on: ubuntu-latest
steps:
- name: Print python3 version
run: python3 --version
- name: Print python3 version (/usr/bin/env python3)
run: /usr/bin/env python3 --version
- name: Check out code
uses: actions/checkout@v3
with:
path: dumux-precice
- name: Build code
run: |
ls -lah
export DUNE_CONTROL_PATH=${PWD}/dumux-precice:${DUNE_CONTROL_PATH}
echo $DUNE_CONTROL_PATH
dunecontrol --only=dumux-precice --opts=./dumux-precice/test/cmake-test.opts all
cd dumux-precice/build-cmake/
make -j2 build_tests
- name: Run tests
run: |
export DUNE_CONTROL_PATH=${PWD}/dumux-precice:${DUNE_CONTROL_PATH}
cd dumux-precice/build-cmake/
CTEST_OUTPUT_ON_FAILURE=1 ctest -j1