Skip to content

Commit b4ef2f2

Browse files
committed
Merge branch 'master' into enh/update-v2.1
2 parents d56a78e + f7469c9 commit b4ef2f2

File tree

2 files changed

+63
-3
lines changed

2 files changed

+63
-3
lines changed

.github/workflows/master.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Test master and publish docs
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Python 3.9
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.9
19+
20+
- name: Install deps
21+
run: |
22+
sudo apt-get update -qq
23+
sudo apt-get install libxerces-c-dev xsdcxx cmake doxygen -qq
24+
python -m pip install --upgrade pip
25+
pip install ghp-import
26+
27+
- name: Create build folder for out-of-source build
28+
shell: bash
29+
run: |
30+
mkdir ${{github.workspace}}/NeuroML_API_build
31+
32+
- name: Configure CMake build
33+
working-directory: ${{github.workspace}}/NeuroML_API_build
34+
shell: bash
35+
run: |
36+
cmake $GITHUB_WORKSPACE
37+
38+
- name: Build
39+
working-directory: ${{github.workspace}}/NeuroML_API_build
40+
shell: bash
41+
run: |
42+
cmake --build .
43+
44+
- name: Test
45+
shell: bash
46+
working-directory: ${{github.workspace}}/NeuroML_API_build
47+
run: |
48+
ctest
49+
./create_net network.nml
50+
./example network.nml
51+
ls -alt
52+
53+
- name: Generate doxygen documentation
54+
shell: bash
55+
working-directory: ${{github.workspace}}/NeuroML_API_build
56+
run: |
57+
doxygen Doxyfile
58+
59+
- name: Publish documentation on GH pages
60+
working-directory: ${{github.workspace}}/NeuroML_API_build
61+
run: |
62+
ghp-import -m "Regenerate documentation" -b gh-pages -n -p docs/html
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
name: Continuous builds
1+
name: CI on pull requests
22

33
on:
4-
push:
5-
branches: [ master, development ]
64
pull_request:
75
branches: [ master, development ]
86

0 commit comments

Comments
 (0)