1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-01-11 23:43:04 +00:00

Add GitHub action test-build

This commit is contained in:
Gerald Schnabel 2023-03-28 00:22:53 +02:00
parent af4993ad74
commit 200f3c40d1
2 changed files with 33 additions and 0 deletions

31
.github/workflows/test-build.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Build firmware
on: push
jobs:
build-firmware:
runs-on: ubuntu-latest
container:
image: ghcr.io/retrofun/mist-firmware-builder
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Build
id: build
run: BASE=/opt/arm-none-eabi/bin/arm-none-eabi make
- name: Get current date
id: date
run: echo "date=$(date '+%Y%m%d-%H%M%S')" >> $GITHUB_OUTPUT
- name: Save artifacts
id: artifacts
uses: actions/upload-artifact@v4
with:
name: mist-firmware-binaries-${{ steps.date.outputs.date }}
path: |
firmware.bin
firmware.hex
firmware.upg

View File

@ -1,3 +1,5 @@
[![Build firmware](https://github.com/mist-devel/mist-firmware/actions/workflows/test-build.yaml/badge.svg)](https://github.com/mist-devel/mist-firmware/actions/workflows/test-build.yaml)
MIST Firmware source code
=========================