-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (81 loc) · 2.46 KB
/
cpp_simple_model.yaml
File metadata and controls
83 lines (81 loc) · 2.46 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
76
77
78
79
80
81
82
83
name: cppSimpleModel
on: [push, workflow_dispatch]
jobs:
Build_Ubuntu:
name: Build Ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
architecture: "x64"
- name: Install graphviz
run: |
sudo apt update
sudo apt-get install graphviz
sudo apt-get install -y gnuplot
- name: Install local registry
run: curl -fsSL https://data.scrc.uk/static/localregistry.sh | /bin/bash -s -- -b main
- name: Install Dependencies
run: |
sudo apt install -y lcov libjsoncpp-dev curl libcurl4-openssl-dev libyaml-cpp-dev libhdf5-dev
- name: Configure Library
run: |
cmake -Bbuild
- name: Run model
run: |
cmake --build build
python3 -m venv venv
source venv/bin/activate
pip3 install fair-cli
fair init --ci --local
fair pull --local data/seirs_config.yaml
fair run --local data/seirs_config.yaml
Build_MacOS:
name: Build MacOS
runs-on: macOS-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
brew install cmake
brew install hdf5
brew install curl
brew install gnuplot
- name: Configure Library
run: |
cmake -Bbuild
- name: Build Library
run: |
cmake --build build
Build_Windows:
name: Build Windows
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- name: Install Dependencies
run: |
choco install gnuplot
choco install wget
wget -O hdf5.zip https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.1/bin/windows/hdf5-1.12.1-Std-win10_64-vs14.zip
tar -xf hdf5.zip
cd hdf
msiexec /i HDF5-1.12.1-win64.msi /quiet /qn /norestart /log log.log INSTALL_ROOT="$Env:RUNNER_TEMP\HDF5_ROOT" | Out-Null
gc log.log
- name: Configure Library
run: |
cmake -Bbuild
env:
HDF5_ROOT: ${{ runner.temp }}\HDF5_ROOT
- name: Compile FDP-Cpp-API
run: cmake --build build --config=Release
env:
HDF5_ROOT: ${{ runner.temp }}\HDF5_ROOT