Publish firmware binary artifacts #134
Workflow file for this run
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
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: | | ||
Check failure on line 37 in .github/workflows/firmware.yml
|
||
cd firmware | ||
APOLLO_BOARD=${{ matrix.target-board }} VERSION_STRING=${{ 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' |