Skip to content

Commit 1a7d26f

Browse files
authored
Merge pull request #20 from FrameworkComputer/github-ci
add orb build target to CI
2 parents f866225 + 7fccbba commit 1a7d26f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/hx20_orb.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build hx20-orb firmware
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: Build hx20-orb
8+
runs-on: ubuntu-20.04
9+
10+
steps:
11+
- name: install toolchain
12+
run: sudo apt install gcc-arm-none-eabi libftdi1-dev
13+
# Checks out a copy of your repository on the ubuntu-latest machine
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: build hx20 board
17+
env:
18+
BOARD: hx20
19+
ORB: y
20+
run: |
21+
make -j BOARD=$BOARD HX20_ORB=$ORB CROSS_COMPILE=arm-none-eabi-
22+
echo Built $BOARD ec
23+
- name: file sha256
24+
run: sha256sum build/hx20/ec.bin
25+
- name: generate artifact version
26+
run: |
27+
echo "::set-env name=VERSION_NAME::$(date -u +'%Y-%m-%d-%H-%M-%S')_$(git rev-parse --short HEAD)"
28+
29+
- uses: actions/upload-artifact@v2
30+
with:
31+
name: hx20_orb.${{env.VERSION_NAME}}.bin
32+
path: build/hx20/ec.bin

0 commit comments

Comments
 (0)