@@ -22,35 +22,29 @@ on: [push]
2222
2323jobs :
2424 build :
25-
2625 runs-on : ubuntu-20.04
27- # Note: Python is needed for spinn_utilities.make_tools when building
28- strategy :
29- matrix :
30- python-version : [3.6]
3126
3227 steps :
33- - name : Set up Python ${{ matrix.python-version }}
28+ - name : Install Ubuntu dependencies
29+ run : |
30+ sudo apt-get update
31+ sudo apt-get install vera++ doxygen gcc-arm-none-eabi --fix-missing
32+
33+ - name : Set up Python 3.6
34+ # Note: Python is needed for spinn_utilities.make_tools when building
3435 uses : actions/setup-python@v2
3536 with :
36- python-version : ${{ matrix.python-version }}
37-
37+ python-version : 3.6
38+
3839 - name : Checkout
3940 uses : actions/checkout@v2
40-
41+
4142 - name : Checkout SupportScripts
4243 uses : actions/checkout@v2
4344 with :
4445 repository : SpiNNakerManchester/SupportScripts
4546 path : support
46-
47- - name : Set SPINN_DIRS and NEURAL_MODELLING
48- run : |
49- echo "Set SPINN_DIRS to $PWD/spinnaker_tools"
50- echo "SPINN_DIRS=$PWD/spinnaker_tools" >> $GITHUB_ENV
51- echo "Set NEURAL_MODELLING to $PWD/neural_modelling"
52- echo "NEURAL_MODELLING_DIRS=$PWD/neural_modelling" >> $GITHUB_ENV
53-
47+
5448 - name : Checkout SpiNNaker Dependencies
5549 run : |
5650 support/gitclone2.sh https://github.com/SpiNNakerManchester/spinnaker_tools.git
@@ -59,26 +53,33 @@ jobs:
5953 # Note: SpiNNUtils needed for spinn_utilities.make_tools
6054 support/gitclone2.sh https://github.com/SpiNNakerManchester/SpiNNUtils.git
6155
56+ - name : Set SPINN_DIRS and NEURAL_MODELLING
57+ run : |
58+ echo "Set SPINN_DIRS to $PWD/spinnaker_tools"
59+ echo "SPINN_DIRS=$PWD/spinnaker_tools" >> $GITHUB_ENV
60+ echo "Set NEURAL_MODELLING to $PWD/neural_modelling"
61+ echo "NEURAL_MODELLING_DIRS=$PWD/neural_modelling" >> $GITHUB_ENV
62+
6263 - name : Install SpiNNUtils
6364 run : python setup.py install
6465 working-directory : SpiNNUtils
65-
66- - name : Install Ubuntu dependencies
67- run : sudo apt-get update && sudo apt-get install vera++ doxygen gcc-arm-none-eabi --fix-missing
68-
66+
6967 - name : Lint C code using Vera++
7068 # Note: run this before building to avoid linting modified_src directories
71- run : |
72- support/run-vera.sh neural_modelling/src
73-
74- - name : Build C code
69+ run : support/run-vera.sh neural_modelling/src
70+
71+ - name : Build C dependencies
7572 run : |
7673 make -C $SPINN_DIRS
7774 make -C spinn_common install
7875 make -C SpiNNFrontEndCommon/c_common install
79- make -C $NEURAL_MODELLING_DIRS doxysetup
80- CFLAGS=-fdiagnostics-color make -C neural_modelling
81-
76+
77+ - name : Build C code
78+ run : make
79+ working-directory : neural_modelling
80+ env :
81+ CFLAGS : -fdiagnostics-color=always
82+
8283 - name : Build documentation using doxygen
83- run : |
84- make -C $NEURAL_MODELLING_DIRS doxygen
84+ run : make doxysetup doxygen
85+ working-directory : neural_modelling
0 commit comments