Skip to content

Commit d903b71

Browse files
committed
build with github actions
1 parent e08c5dd commit d903b71

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/build_lcm.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: LCM Build and Publish
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
tags:
10+
- lcm@*
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build:
18+
name: Build LCM firmware
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Setup vcpkg environment
26+
uses: ARM-software/cmsis-actions/vcpkg@v1
27+
28+
- name: Activate Arm tool license
29+
uses: ARM-software/cmsis-actions/armlm@v1
30+
31+
- name: Register packs
32+
run: |
33+
cpackget add LCM/HKMicroChip.HK32F030xMxx_DFP.1.0.17.pack
34+
35+
- name: Build
36+
working-directory: ./LCM
37+
run: |
38+
./build.sh || true
39+
missing=0
40+
[ ! -f lcm_adv_p42a.hex ] && echo "::warning::ADV-P42A firmware failed to build" && missing=1
41+
[ ! -f lcm_adv_dg40.hex ] && echo "::warning::ADV-DG40 firmware failed to build" && missing=1
42+
[ ! -f lcm_gtv.hex ] && echo "::warning::GTV firmware failed to build" && missing=1
43+
[ ! -f lcm_pintv.hex ] && echo "::warning::PintV firmware failed to build" && missing=1
44+
[ ! -f lcm_xrv.hex ] && echo "::warning::XRV firmware failed to build" && missing=1
45+
[ "$missing" -eq 0 ] && true || false
46+
47+
- name: Upload artifacts
48+
if: ${{ !cancelled() }}
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: firmware
52+
path: ./LCM/*.hex

0 commit comments

Comments
 (0)