File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-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: Setup Nix Cache
22+ uses: DeterminateSystems/flakehub-push@v3
23+ with:
24+ visibility: public
25+ name: specter-diy
26+ rolling: true
27+
28+ - name: Cache Nix store
29+ uses: actions/cache@v3
30+ with:
31+ path: |
32+ ~/.cache/nix
33+ /nix/store
34+ key: nix-${{ runner.os }}-${{ hashFiles('flake.lock') }}
35+ restore-keys: |
36+ nix-${{ runner.os }}-
37+
38+ - name: Build Unix simulator
39+ run: nix develop -c make unix
40+
41+ - name: Build STM32F469 Discovery firmware
42+ run: nix develop -c make disco
43+
44+ - name: Upload firmware artifacts
45+ uses: actions/upload-artifact@v4
46+ with:
47+ name: firmware-binaries
48+ path: |
49+ bin/
50+ release/
You can’t perform that action at this time.
0 commit comments