Skip to content

Commit 50169a4

Browse files
committed
enh: add github action for CI
1 parent 2dd9a4a commit 50169a4

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Continuous builds
2+
3+
on:
4+
push:
5+
branches: [ master, development ]
6+
pull_request:
7+
branches: [ master, development ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Install deps
19+
run: |
20+
sudo apt-get update -qq
21+
sudo apt-get install libxerces-c-dev xsdcxx cmake -qq
22+
23+
- name: Create build folder for out-of-source build
24+
shell: bash
25+
run: |
26+
mkdir ${{github.workspace}}/NeuroML_API_build
27+
28+
- name: Configure CMake build
29+
working-directory: ${{github.workspace}}/NeuroML_API_build
30+
shell: bash
31+
run: |
32+
cmake $GITHUB_WORKSPACE
33+
34+
- name: Build
35+
working-directory: ${{github.workspace}}/NeuroML_API_build
36+
shell: bash
37+
run: |
38+
cmake --build .
39+
40+
- name: Test
41+
shell: bash
42+
working-directory: ${{github.workspace}}/NeuroML_API_build
43+
run: |
44+
ctest
45+
./create_net network.nml
46+
./example network.nml
47+
ls -alt

0 commit comments

Comments
 (0)