Skip to content

Commit

Permalink
install and cache NEST
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Feb 13, 2024
1 parent 240da7f commit 2447f53
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/devops/install-nest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
git clone https://github.com/nest/nest-simulator $GITHUB_WORKSPACE/nest
cd $GITHUB_WORKSPACE/nest
git checkout tags/v$1
mkdir build
cd build
pip install cython cmake
cmake .. \
-DCMAKE_INSTALL_PREFIX=$2 \
-Dwith-mpi=ON
make install
14 changes: 14 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Test BSB NEST adapter

on: [push, pull_request]

env:
NEST_VERSION: 3.6

jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
Expand All @@ -22,6 +25,17 @@ jobs:
sudo apt update
sudo apt install openmpi-bin libopenmpi-dev
- name: Cache NEST
id: cache-nest
uses: actions/cache@v4
with:
path: /simulators/nest
key: ${{ runner.os }}-${{ matrix.python-version }}-nest

- name: Install NEST
if: steps.cache-nest.outputs.cache-hit != 'true'
run: .github/devops/install-nest.sh ${NEST_VERSION} /simulators/nest

- name: Install dependencies & self
run: |
pip install --upgrade pip
Expand Down

0 comments on commit 2447f53

Please sign in to comment.