Skip to content

Commit e9e8929

Browse files
committed
ci: add github action for build image
Signed-off-by: tfx2001 <[email protected]>
1 parent 7ba8481 commit e9e8929

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
path: dl
18+
19+
- name: Build image
20+
run: |
21+
make hpmicro_hpm6360evk_defconfig
22+
make all
23+
24+
- name: Archive image artifacts
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: image
28+
path: output/images/flash.img
29+

0 commit comments

Comments
 (0)