-
Notifications
You must be signed in to change notification settings - Fork 76
31 lines (27 loc) · 899 Bytes
/
hx20.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: build hx20 firmware
on: [push, pull_request, workflow_dispatch]
jobs:
build:
name: Build hx20 evt
runs-on: ubuntu-20.04
steps:
- name: install toolchain
run: sudo apt install gcc-arm-none-eabi libftdi1-dev
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
- name: build hx20 board
env:
BOARD: hx20
run: |
make -j BOARD=$BOARD CROSS_COMPILE=arm-none-eabi-
echo Built $BOARD ec
- name: file sha256
run: sha256sum build/hx20/ec.bin
- name: generate artifact version
run: |
echo "VERSIONINFO=$(date -u +'%Y-%m-%d-%H-%M-%S')_$GITHUB_SHA" >> $GITHUB_ENV
- uses: actions/upload-artifact@v2
with:
name: hx20.${{ env.VERSIONINFO }}.bin
path: build/hx20/ec.bin