Skip to content

Commit 9bf4dcd

Browse files
committed
ci: try build
1 parent 18d9f68 commit 9bf4dcd

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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

0 commit comments

Comments
 (0)