File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ pull_request :
5+ branches : [main, master]
6+ push :
7+ branches : [main, master]
8+
9+ jobs :
10+ build :
11+ name : Build Firmware
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v3
15+ with :
16+ submodules : recursive
17+
18+ - name : Install Nix
19+ uses : DeterminateSystems/nix-installer-action@v14
20+
21+ - name : Cache Nix store
22+ uses : actions/cache@v3
23+ with :
24+ path : |
25+ ~/.cache/nix
26+ /nix/store
27+ key : nix-${{ runner.os }}-${{ hashFiles('flake.lock') }}
28+ restore-keys : |
29+ nix-${{ runner.os }}-
30+
31+ - name : Build Unix simulator
32+ run : nix develop -c make unix
33+
34+ - name : Build STM32F469 Discovery firmware
35+ run : nix develop -c make disco
36+
37+ - name : Upload firmware artifacts
38+ uses : actions/upload-artifact@v4
39+ with :
40+ name : firmware-binaries
41+ path : |
42+ bin/specter-diy.bin
43+ bin/specter-diy.hex
You can’t perform that action at this time.
0 commit comments