-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (43 loc) · 1.25 KB
/
STDP.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
name: Event-driven plasticity
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Checkout source
uses: actions/checkout@v2
- name: Checkout Arbor source
uses: actions/checkout@v2
with:
repository: arbor-sim/arbor
ref: v0.9.0
path: arbor
submodules: true
- name: Install
run: |
python3 -m venv venv
source venv/bin/activate
pip install -r STDP/requirements.txt
cd arbor
mkdir build
cd build
cmake -DARB_WITH_PYTHON=ON -DARB_USE_BUNDLED_LIBS=ON -DCMAKE_INSTALL_PREFIX=$(readlink -f ../../venv) ..
make install
- name: Run
run: |
source venv/bin/activate
export PATH=$(readlink -f arbor/scripts/):$PATH
export CMAKE_PREFIX_PATH=$(readlink -f venv)
cd STDP
make
- uses: actions/upload-artifact@v2
with:
name: Result of comparison
path: STDP/comparison_brian2_arbor.png