Skip to content

Commit

Permalink
Merge pull request #116 from retrofun/github-action-test-build
Browse files Browse the repository at this point in the history
Add GitHub action test-build
  • Loading branch information
gyurco authored May 18, 2024
2 parents af4993a + 200f3c4 commit d3e5c92
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
=========================

Expand Down

0 comments on commit d3e5c92

Please sign in to comment.