-
-
Notifications
You must be signed in to change notification settings - Fork 11
65 lines (58 loc) · 1.9 KB
/
run-macro-micro-dummy.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
name: Run macro-micro dummy
on:
push:
branches:
- main
- develop
pull_request:
branches:
- "*"
jobs:
run_dummy:
name: Run dummy
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: micro-manager
- name: Install Dependencies
working-directory: micro-manager
run: |
apt-get -qq update
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config
apt-get -qq install sudo
pip3 install --upgrade pip
- name: Install micro-manager
working-directory: micro-manager
run: |
pip3 install .
- name: Run python macro-micro dummy
timeout-minutes: 3
working-directory: micro-manager/examples
run: |
micro-manager-precice micro-manager-python-config.json &
python3 macro_dummy.py
- name: Run adaptive python macro-micro dummy
timeout-minutes: 3
working-directory: micro-manager/examples
run: |
micro-manager-precice micro-manager-python-adaptivity-config.json &
python3 macro_dummy.py
- name: Run c++ macro-micro dummy
timeout-minutes: 3
working-directory: micro-manager/examples
run: |
cd cpp-dummy/
pip install pybind11
c++ -O3 -Wall -shared -std=c++11 -fPIC $(python3 -m pybind11 --includes) micro_cpp_dummy.cpp -o micro_dummy$(python3-config --extension-suffix)
cd ../
micro-manager-precice micro-manager-cpp-config.json &
python3 macro_dummy.py
- name: Run adaptive c++ macro-micro dummy
timeout-minutes: 3
working-directory: micro-manager/examples
run: |
micro-manager-precice micro-manager-cpp-adaptivity-config.json &
python3 macro_dummy.py