Skip to content

Publish firmware binary artifacts #135

Publish firmware binary artifacts

Publish firmware binary artifacts #135

Workflow file for this run

name: Firmware
on: [push, pull_request, merge_group]
jobs:
firmware-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target-board:
- 'cynthion'
- 'samd11_xplained'
- 'qtpy'
steps:
- name: Install ARM GCC
uses: carlosperate/arm-none-eabi-gcc-action@v1
- name: Git describe
id: ghd
uses: proudust/gh-describe@v2
- name: Check outputs
run: |
echo "describe : ${{ steps.ghd.outputs.describe }}"
echo "tag : ${{ steps.ghd.outputs.tag }}"
echo "distance : ${{ steps.ghd.outputs.distance }}"
echo "sha : ${{ steps.ghd.outputs.sha }}"
echo "short-sha : ${{ steps.ghd.outputs.short-sha }}"
git describe --abbrev=7 --dirty --always --tags
- name: Checkout source code
uses: actions/checkout@v4
with:
submodules: true
- name: Build Apollo firmware for ${{ matrix.target-board }}
run: |
cd firmware
APOLLO_BOARD=${{ matrix.target-board }} VERSION_STRING=${{ steps.ghd.outputs.describe }} make get-deps all
# Publish bootloader binary for latest Cynthion hardware revision
- name: Publish Artifacts
uses: actions/upload-artifact@v4
with:
name: firmware-binaries
path: |
firmware/_build/cynthion_d11/firmware.bin
firmware/_build/cynthion_d11/firmware.elf
if: matrix.target-board == 'cynthion'