Skip to content

Commit e27bb7d

Browse files
authored
Merge pull request #2 from ligenxxxx/add-github-workflow
add github workflow
2 parents e824012 + 992f320 commit e27bb7d

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build Firmware
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
submodules: true
13+
14+
- name: Build Firmware
15+
run: |
16+
bash setup.sh
17+
make -C build
18+
19+
- name: Get Firmware Name
20+
id: vars
21+
run: echo "firmware_name=$(basename out/*bin)" >> $GITHUB_ENV
22+
23+
- name: Upload Firmware Package
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: ${{ env.firmware_name }}
27+
path: out/${{ env.firmware_name }}
28+
29+
- name: Upload Firmware Binary
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: HDZGOGGLE
33+
path: out/HDZGOGGLE
34+
35+
- name: Create Release
36+
uses: softprops/action-gh-release@v0.1.15
37+
if: startsWith(github.ref, 'refs/tags/v')
38+
with:
39+
files: out/${{ env.firmware_name }}
40+
draft: true

0 commit comments

Comments
 (0)