-
Notifications
You must be signed in to change notification settings - Fork 10
test No install #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Christian-B
wants to merge
3
commits into
master
Choose a base branch
from
no_install
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
test No install #134
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| # 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 | ||
| 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: | ||
| CFLAGS: -fdiagnostics-color=always | ||
| run: | | ||
| make -C spinnaker_tools | ||
| make -C spinn_common | ||
| make -C SpiNNFrontEndCommon/c_common | ||
| make -C sPyNNaker/neural_modelling | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 7 days ago
In general, to fix this class of issue you add an explicit
permissionsblock either at the workflow root (to apply to all jobs by default) or inside each job (to scope per job). You then restrictGITHUB_TOKENto the least privileges needed, oftencontents: readfor simple CI workflows that only need to clone the repo.For this specific workflow, the steps only check out code, install dependencies, and run build commands. None of them appear to require write access to repository contents or other GitHub resources. The simplest, least intrusive fix is to add a workflow‑level
permissionsblock right after thename:oron:key, withcontents: read. This will apply to thebuildjob and any future jobs unless they override it. Concretely, in.github/workflows/c_actions.yml, add:between the
name: C Actionsandon: [push]lines (or betweenon:andjobs:; both are valid, but placing it near the top is conventional). No additional methods, imports, or definitions are required because this is a YAML configuration change only.