Commit 56c47eb 1 parent 23602be commit 56c47eb Copy full SHA for 56c47eb
File tree 2 files changed +381
-0
lines changed
2 files changed +381
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Auto-Build-Firmware
2
+ run-name : Building Firmware...
3
+ on :
4
+ push :
5
+ release :
6
+ types : [published]
7
+ jobs :
8
+ c-make-progress :
9
+ name : C Make to build firmware
10
+ runs-on : windows-2022
11
+ steps :
12
+ - name : Checkout Repository
13
+ uses : actions/checkout@v4
14
+ - name : C Make Clean
15
+ run : |
16
+ make clean
17
+ - name : C make prebuild
18
+ run : |
19
+ make prebuild
20
+ - name : C make all
21
+ run : |
22
+ make all -j4
23
+ - name : Copy firmware file to new folder
24
+ run : |
25
+ mkdir "output"
26
+ Copy-Item "./build/SimGEREO_Public/SimGEKI.bin" -Destination "./output/" -Force
27
+ Copy-Item "./build/SimGEREO_Public/SimGEKI.hex" -Destination "./output/" -Force
28
+ shell : pwsh
29
+ - name : Upload files to release
30
+ uses : softprops/action-gh-release@v1
31
+ if : startsWith(github.ref, 'refs/tags/')
32
+ env :
33
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
+ with :
35
+ files : |
36
+ ./output/SimGEKI.bin
37
+ ./output/SimGEKI.hex
38
+ - name : Upload firmware to artifact(bin)
39
+ uses : actions/upload-artifact@v4
40
+ if : ${{ !startsWith(github.ref, 'refs/tags/') }}
41
+ with :
42
+ name : SimGEKI_firmware_bin
43
+ path : ./output/SimGEKI.bin
44
+ retention-days : 90
45
+ - name : Upload firmware to artifact(hex)
46
+ uses : actions/upload-artifact@v4
47
+ if : ${{ !startsWith(github.ref, 'refs/tags/') }}
48
+ with :
49
+ name : SimGEKI_firmware_hex
50
+ path : ./output/SimGEKI.hex
51
+ retention-days : 90
You can’t perform that action at this time.
0 commit comments