-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor workflows to check if code compiles
- Loading branch information
Showing
8 changed files
with
153 additions
and
389 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build Project | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
preset: | ||
description: | | ||
'CMake preset to build the project, run `cmake --build --list-presets' to see a complete list of options' | ||
required: true | ||
type: string | ||
default: 'nucleo-debug' | ||
outputs: | ||
build-artifact: | ||
description: 'Build result artifact id for later use' | ||
value: ${{ jobs.build.outputs.build-artifact }} | ||
workflow_dispatch: | ||
inputs: | ||
preset: | ||
description: | | ||
'CMake preset to build the project, run `cmake --build --list-presets' to see a complete list of options' | ||
required: true | ||
type: string | ||
default: 'nucleo-debug' | ||
|
||
jobs: | ||
build: | ||
name: Build Project | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
build-artifact: ${{ steps.upload-build-artifact.outputs.artifact-id }} | ||
container: | ||
image: jmaralo/hyperloop-upv-firmware:0.3.0 | ||
steps: | ||
- name: Clone Project | ||
uses: actions/checkout@v3 | ||
- name: Prepare submodules | ||
run: | | ||
git submodule init | | ||
git submodule update | ||
- name: Build | ||
run: | | ||
cmake --preset ${{ inputs.preset }} . | ||
cmake --build --preset ${{ inputs.preset }} | ||
- name: Upload Build | ||
id: upload-build-artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.preset }} | ||
path: out/build/latest.elf | ||
retention-days: 7 | ||
compression-level: 0 | ||
if-no-files-found: error | ||
|
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Compile Checks | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
compile-checks: | ||
name: Check project compiles | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
preset: | ||
- nucleo-debug | ||
- nucleo-release | ||
- nucleo-relwithdebinfo | ||
- nucleo-debug-eth | ||
- nucleo-release-eth | ||
- nucleo-relwithdebinfo-eth | ||
- board-debug | ||
- board-release | ||
- board-relwithdebinfo | ||
- board-debug-eth | ||
- board-release-eth | ||
- board-relwithdebinfo-eth | ||
- simulator | ||
steps: | ||
- name: Build | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
preset: ${{ matrix.preset }} |
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
Submodule ST-LIB
updated
65 files
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.