-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 982 Bytes
/
pr.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
name: CI on pull requests
on:
pull_request:
branches: [ master, development ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
sudo apt-get update -qq
sudo apt-get install libxerces-c-dev xsdcxx cmake -qq
- name: Create build folder for out-of-source build
shell: bash
run: |
mkdir ${{github.workspace}}/NeuroML_API_build
- name: Configure CMake build
working-directory: ${{github.workspace}}/NeuroML_API_build
shell: bash
run: |
cmake $GITHUB_WORKSPACE -DREGENERATE_BINDINGS=ON
- name: Build
working-directory: ${{github.workspace}}/NeuroML_API_build
shell: bash
run: |
cmake --build .
- name: Test
shell: bash
working-directory: ${{github.workspace}}/NeuroML_API_build
run: |
ctest
./create_net network.nml
./example network.nml
ls -alt