-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (50 loc) · 1.5 KB
/
master.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Test master and publish docs
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install deps
run: |
sudo apt-get update -qq
sudo apt-get install libxerces-c-dev xsdcxx cmake doxygen graphviz -qq
python -m pip install --upgrade pip
pip install ghp-import
- 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
- name: Generate doxygen documentation
shell: bash
working-directory: ${{github.workspace}}/NeuroML_API_build
run: |
doxygen Doxyfile
- name: Publish documentation on GH pages
working-directory: ${{github.workspace}}/NeuroML_API_build
run: |
ghp-import -f -m "Regenerate documentation" -b gh-pages -n -p docs/html