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:
parent
af4993ad74
commit
200f3c40d1
31
.github/workflows/test-build.yaml
vendored
Normal file
31
.github/workflows/test-build.yaml
vendored
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user