-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.69 KB
/
ubuntu-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
name: ubuntu-ci
on:
schedule:
# Every Monday at 3 am
- cron: '0 3 * * 1'
push:
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- name: Checkout HIV_malawi repository
uses: actions/checkout@v2
- name: Install BioDynaMo dependencies
run: |
sudo apt-get update
sudo apt-get install -y libopenmpi-dev libomp5 libomp-dev libnuma-dev freeglut3-dev \
libreadline-dev libsqlite3-dev tk-dev python-openssl ninja-build
curl -L -O https://github.com/Kitware/CMake/releases/download/v3.19.3/cmake-3.19.3-Linux-x86_64.sh
chmod +x cmake-3.19.3-Linux-x86_64.sh
sudo ./cmake-3.19.3-Linux-x86_64.sh --skip-license --prefix=/usr/local
- name: Install BioDynaMo
run: |
if [ ! -f "$HOME/.pyenv/bin/pyenv" ]; then
curl https://pyenv.run | bash
fi
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.9.1
pyenv shell 3.9.1
cd ..
git clone https://github.com/BioDynaMo/biodynamo.git
cd biodynamo
cmake -G Ninja \
-Dparaview=off \
-DCMAKE_BUILD_TYPE=Release \
-B build
cmake --build build --parallel --config Release
- name: Build hiv_malawi and run small simulation; an execute unit tests
run: |
sed -i 's/uint64_t number_of_iterations = 60/uint64_t number_of_iterations = 3/g' src/sim-param.h
. ../biodynamo/build/bin/thisbdm.sh
bdm run
bdm test