Skip to content

Commit

Permalink
add a build task that builds just the applications, we don't need the…
Browse files Browse the repository at this point in the history
… images, and we don't need the release
  • Loading branch information
ryanthecoder committed Apr 8, 2024
1 parent 1db19b2 commit 57ce600
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build_sensor_fw.yaml
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/*

0 comments on commit 57ce600

Please sign in to comment.