-
-
Notifications
You must be signed in to change notification settings - Fork 12
75 lines (72 loc) · 2.15 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
70
71
72
73
74
75
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: 80
env:
CXX_FLAGS: "-Werror -Wall -Wextra -Wno-unused-parameter"
CTEST_OUTPUT_ON_FAILURE: "Yes"
steps:
- 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: |
git clone https://gitlab.kitware.com/vtk/vtk.git && cd vtk
git checkout v9.3.0
mkdir build && cd build
cmake -DVTK_WRAP_PYTHON="ON" -DVTK_USE_MPI="ON" -DCMAKE_BUILD_TYPE=Release ..
cmake --build . -j 2 && cmake --install .
echo "PYTHONPATH=/usr/local/lib/python3.10/site-packages/:${PYTHONPATH}" >> $GITHUB_ENV
cd
- uses: actions/checkout@v4
- name: install example dependencies
run: |
python3 -m pip install -r requirements.txt
- 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