2024-07-27 11:39:16 +00:00
|
|
|
name: Build STM32
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
board:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-stm32:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-09-22 11:39:35 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build base
|
|
|
|
id: base
|
|
|
|
uses: ./.github/actions/setup-base
|
|
|
|
|
|
|
|
- name: Build STM32
|
|
|
|
run: bin/build-stm32.sh ${{ inputs.board }}
|
|
|
|
|
|
|
|
- name: Get release version string
|
|
|
|
run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
|
|
|
|
id: version
|
|
|
|
|
|
|
|
- name: Store binaries as an artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
2024-07-27 11:39:16 +00:00
|
|
|
with:
|
2024-09-22 11:39:35 +00:00
|
|
|
name: firmware-${{ inputs.board }}-${{ steps.version.outputs.version }}.zip
|
|
|
|
overwrite: true
|
|
|
|
path: |
|
2024-07-27 11:39:16 +00:00
|
|
|
release/*.hex
|
|
|
|
release/*.bin
|