-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.woodpecker.yml
27 lines (25 loc) · 976 Bytes
/
.woodpecker.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
matrix:
include:
- BUILDTYPE: Release
IMAGE: "xyst-gnu"
CHARM_INSTALL_DIR: "/charm-non-smp"
- BUILDTYPE: Debug
IMAGE: "xyst-gnu"
CHARM_INSTALL_DIR: "/charm-non-smp"
- BUILDTYPE: Release
IMAGE: "xyst-clang"
CHARM_INSTALL_DIR: "/charm-smp"
POSTFIX_RUNNER_ARGS: "+setcpuaffinity"
- BUILDTYPE: Debug
IMAGE: "xyst-clang"
CHARM_INSTALL_DIR: "/charm-non-smp"
steps:
build:
image: jbakosi/${IMAGE}
#pull: true
commands:
- mkdir build && cd build && cmake -GNinja -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -DCHARM_INSTALL_DIR=${CHARM_INSTALL_DIR} -DCMAKE_BUILD_TYPE=${BUILDTYPE} -DRUNNER=mpirun -DRUNNER_NCPUS_ARG=-n -DRUNNER_ARGS="--allow-run-as-root -oversubscribe" -DPOSTFIX_RUNNER_ARGS=${POSTFIX_RUNNER_ARGS} ../src && ninja
test:
image: jbakosi/${IMAGE}
commands:
- cd build && mpirun --allow-run-as-root -n 2 Main/unittest -q && ctest -j2 --output-on-failure