Skip to content

Commit 222735f

Browse files
committed
ci: add github action for build image
Signed-off-by: tfx2001 <[email protected]>
1 parent 2e0ef83 commit 222735f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on:
2+
push:
3+
branches: [ 'hpm-2024.05.1', 'dev/*' ]
4+
pull_request:
5+
6+
name: Build
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Cache buildroot download sources
15+
uses: actions/cache@v3
16+
with:
17+
key: ${{ runner.os }}-buildroot-dl
18+
path: dl
19+
20+
- name: Download cargo-binutils
21+
run: |
22+
cargo install cargo-binutils
23+
24+
- name: Build image
25+
run: |
26+
make hpmicro_hpm6360evk_defconfig
27+
make all
28+
29+
- name: Archive image artifacts
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: image
33+
path: output/images/flash.img
34+

0 commit comments

Comments
 (0)