-
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.
add a build task that builds just the applications, we don't need the…
… images, and we don't need the release
- Loading branch information
1 parent
1db19b2
commit 57ce600
Showing
1 changed file
with
44 additions
and
0 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 release 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 | ||
- 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/* |