Repository navigation
75 lines (65 loc) · 2.35 KB
/
Copy pathci.yml
File metadata and controls
75 lines (65 loc) · 2.35 KB
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: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# use-recipe / recipe-version / recipe-arch are read by
# ci-workflows' bin/repro to map a row onto a cell coord, so
# `bin/repro <row> --devshell` resolves without a direct coord.
- name: ubu24-gcc
os: ubuntu-24.04
compiler: gcc
use-recipe: biodynamo
recipe-version: v1.05-cr-20260812-01
recipe-arch: x86_64
steps:
- uses: actions/checkout@v4
- name: Set up compiler
run: |
if [ "${{ matrix.compiler }}" = "gcc" ]; then
echo "CC=gcc" >> $GITHUB_ENV
echo "CXX=g++" >> $GITHUB_ENV
else
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
fi
# Replaces the previous clone-and-build-BioDynaMo dance plus its pyenv
# setup: the recipe ships a prebuilt, relocatable BioDynaMo carrying its
# own ROOT, and this action exports the thisbdm.sh environment so
# find_package(BioDynaMo) below resolves with no further plumbing.
- name: Set up BioDynaMo
uses: compiler-research/ci-workflows/actions/setup-biodynamo@main
with:
version: ${{ matrix.recipe-version }}
os: ${{ matrix.os }}
arch: ${{ matrix.recipe-arch }}
# The cell is published, so a miss means the pinned version or the
# recipe content moved without the cache being warmed. Fail loudly
# rather than silently rebuilding BioDynaMo on every run.
build-on-miss: false
- name: Configure project
run: |
cmake . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build project
run: |
cmake --build build -- -j$(nproc)
- name: Run tests
run: |
ctest --test-dir build --output-on-failure
- name: Setup tmate session
if: ${{ !cancelled() && runner.debug }}
uses: mxschmitt/action-tmate@v3
# When debugging increase to a suitable value!
timeout-minutes: 30