From d6637bf34aad9ae83a44a00ceec67cc102a4c30f Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Thu, 18 Dec 2025 10:52:16 +0000 Subject: [PATCH 1/3] test parallel build --- .github/workflows/c_actions.yml | 78 +++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 .github/workflows/c_actions.yml diff --git a/.github/workflows/c_actions.yml b/.github/workflows/c_actions.yml new file mode 100644 index 0000000..326a911 --- /dev/null +++ b/.github/workflows/c_actions.yml @@ -0,0 +1,78 @@ +# Copyright (c) 2020 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# This workflow will install Python dependencies, run tests, lint and rat with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: C Actions +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Checkout SupportScripts + uses: actions/checkout@v2 + with: + repository: SpiNNakerManchester/SupportScripts + path: support + + - name: Install Ubuntu packages + uses: SpiNNakerManchester/SupportScripts/actions/apt-get-install@main + with: + packages: doxygen gcc-arm-none-eabi + - name: Configure Python 3.12 + # Note: Python is needed for spinn_utilities.make_tools when building + uses: actions/setup-python@v2 + with: + python-version: 3.12 + + - name: Checkout SpiNNaker C Dependencies + uses: SpiNNakerManchester/SupportScripts/actions/install-spinn-deps@main + with: + # Note: SpiNNUtils needed for spinn_utilities.make_tools + repositories: > + spinnaker_tools spinn_common SpiNNFrontEndCommon sPyNNaker + + - name: "Prepare: Install SpiNNUtils" + uses: SpiNNakerManchester/SupportScripts/actions/install-spinn-deps@main + with: + # Note: SpiNNUtils needed for spinn_utilities.make_tools + repositories: SpiNNUtils + install: true + + - name: Build SpiNNaker C code + env: + SPINN_INSTALL_DIR: ${{ github.workspace }}/spinnaker_tools_install + SPINN_COMMON_INSTALL_DIR: ${{ github.workspace }}/spinn_common_install + FEC_INSTALL_DIR: ${{ github.workspace }}/fec_install + SPYNNAKER_INSTALL_DIR: ${{ github.workspace }}/spynnaker_install + C_LOGS_DICT: ${{ github.workspace }}/python_models8/model_binaries/logs.sqlite3 + CFLAGS: -fdiagnostics-color=always + run: | + make -C spinnaker_tools install + make -C spinn_common install + make -C SpiNNFrontEndCommon/c_common install + make -C sPyNNaker/neural_modelling install + + - name: Build SpiNNaker C code globally + env: + C_LOGS_DICT: ${{ github.workspace }}/python_models8/model_binaries/logs.sqlite3 + CFLAGS: -fdiagnostics-color=always + run: | + make -C spinnaker_tools + make -C spinn_common install + make -C SpiNNFrontEndCommon/c_common + make -C sPyNNaker/neural_modelling From 195d4997c56fa5696f0719510201dc3c87108983 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Thu, 18 Dec 2025 10:58:43 +0000 Subject: [PATCH 2/3] dont set C_LOGS_DICT --- .github/workflows/c_actions.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/c_actions.yml b/.github/workflows/c_actions.yml index 326a911..1f3108b 100644 --- a/.github/workflows/c_actions.yml +++ b/.github/workflows/c_actions.yml @@ -59,7 +59,6 @@ jobs: SPINN_COMMON_INSTALL_DIR: ${{ github.workspace }}/spinn_common_install FEC_INSTALL_DIR: ${{ github.workspace }}/fec_install SPYNNAKER_INSTALL_DIR: ${{ github.workspace }}/spynnaker_install - C_LOGS_DICT: ${{ github.workspace }}/python_models8/model_binaries/logs.sqlite3 CFLAGS: -fdiagnostics-color=always run: | make -C spinnaker_tools install @@ -69,7 +68,6 @@ jobs: - name: Build SpiNNaker C code globally env: - C_LOGS_DICT: ${{ github.workspace }}/python_models8/model_binaries/logs.sqlite3 CFLAGS: -fdiagnostics-color=always run: | make -C spinnaker_tools From 3d5976bcf8f87cf468e20c8c4d3fe4eac4db3e05 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Thu, 18 Dec 2025 11:01:49 +0000 Subject: [PATCH 3/3] no install in global --- .github/workflows/c_actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c_actions.yml b/.github/workflows/c_actions.yml index 1f3108b..6f41429 100644 --- a/.github/workflows/c_actions.yml +++ b/.github/workflows/c_actions.yml @@ -71,6 +71,6 @@ jobs: CFLAGS: -fdiagnostics-color=always run: | make -C spinnaker_tools - make -C spinn_common install + make -C spinn_common make -C SpiNNFrontEndCommon/c_common make -C sPyNNaker/neural_modelling