-
-
Notifications
You must be signed in to change notification settings - Fork 13
69 lines (66 loc) · 1.81 KB
/
aste_ci.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
60
61
62
63
64
65
66
67
68
69
name: ASTE CI
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
schedule:
- cron: '0 8 * * 2' # run once in a week (here Tue at 8am)
concurrency:
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
jobs:
build:
runs-on: ubuntu-latest
container: precice/precice:nightly
timeout-minutes: 30
env:
CXX_FLAGS: "-Werror -Wall -Wextra -Wno-unused-parameter"
CTEST_OUTPUT_ON_FAILURE: "Yes"
steps:
- uses: actions/checkout@v4
- name: setup system
run: |
apt-get -y update && apt-get -y upgrade
apt-get install -y python3-pip pkg-config time
pip3 install --upgrade pip
- name: install VTK
run: |
apt-get -y install libvtk9-dev
- name: install example dependencies
run: |
python3 -m pip install sympy scipy jinja2
- name: prepare directories
run: |
mkdir build_gcc build_clang
- name: build aste gcc
working-directory: build_gcc
env:
CC: gcc
CXX: g++
run: |
cmake ..
cmake --build .
- name: Adjust user rights
run: chown -R precice .
- name: run test gcc
working-directory: build_gcc
run: |
su -c "ctest" precice
- name: install clang
run: |
apt-get -y install clang
- name: build aste clang
working-directory: build_clang
env:
CC: clang
CXX: clang++
run: |
cmake ..
cmake --build .
- name: Adjust user rights
run: chown -R precice .
- name: run test clang
working-directory: build_clang
run: |
su -c "ctest" precice