-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cmake): Add sensor variant firmware ci (#766)
* add a configure and build preset for the special sensor firmware * add a build task that builds just the applications, we don't need the images, and we don't need the release * make the workflow task have a better name * ignore the dist-sensor directory * guess we gotta build the images for install to run * use the other preset in the test gitub workflow
- Loading branch information
1 parent
40a5db1
commit ed0f77e
Showing
4 changed files
with
75 additions
and
7 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,44 @@ | ||
name: "Build firmware sensor variant bundles" | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
|
||
env: | ||
ci: 1 | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build: | ||
name: "Build" | ||
runs-on: "ubuntu-latest" | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
with: | ||
fetch-depth: 0 | ||
- uses: "actions/cache@v3" | ||
with: | ||
path: "./stm32-tools" | ||
key: ${{ runner.os }}-${{ hashFiles('**/cmake/*') }}-${{ secrets.CACHE_VERSION }} | ||
- name: 'CMake configure' | ||
run: | | ||
cmake --preset=cross-sensor-buffer . -DCMAKE_BUILD_TYPE=RelWithDebInfo | ||
- name: 'Build images' | ||
run: | | ||
cmake --build --preset=firmware-g4-sensors --target firmware-applications firmware-images | ||
- name: 'Prep images for upload' | ||
run: | | ||
cmake --install ./build-cross-sensor | ||
- name: 'Upload application artifact' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'firmware-applications-${{github.ref_name}}' | ||
path: | | ||
dist-sensor/applications/* |
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
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
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