workflow fix #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |