-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (29 loc) · 1.12 KB
/
main.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
name: build
on:
[push, pull_request]
jobs:
build:
name: "ci"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: "pull docker image"
run: docker pull hobywan/cosyr:latest
- name: "create volume, build cosyr and run test"
run: |
docker run -v "$(pwd):/home/cosyr" hobywan/cosyr /bin/bash -c \
"cd /home/cosyr && mkdir build && cd build && \
cmake -Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TCMALLOC=False \
-DPORTAGE_DIR=/home/dependencies/portage \
-DKokkos_DIR=/home/dependencies/kokkos \
-Dpybind11_DIR=/home/dependencies/pybind \
-DCabana_DIR=/home/dependencies/cabana \
.. && \
make -j 4 && \
export PYTHONPATH=/home/cosyr && \
export OMP_PROC_BIND=close OMP_PLACES=cores && \
mpiexec -np 1 ./cosyr /home/cosyr/input/test_beam_g10_l200.py && \
cmp /home/cosyr/build/test_beam_g10_l200/mesh/399/comoving_mesh_field.csv \
/home/cosyr/analysis/reference_field.csv"