Merge pull request #15 from NeuroML/development #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |