-
Notifications
You must be signed in to change notification settings - Fork 98
43 lines (36 loc) · 993 Bytes
/
build.yml
File metadata and controls
43 lines (36 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build
on:
pull_request:
branches: [main, master]
push:
branches: [main, master]
jobs:
build:
name: Build Firmware
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
- name: Cache Nix store
uses: actions/cache@v3
with:
path: |
~/.cache/nix
/nix/store
key: nix-${{ runner.os }}-${{ hashFiles('flake.lock') }}
restore-keys: |
nix-${{ runner.os }}-
- name: Build Unix simulator
run: nix develop -c make unix
- name: Build STM32F469 Discovery firmware
run: nix develop -c make disco
- name: Upload firmware artifacts
uses: actions/upload-artifact@v4
with:
name: firmware-binaries
path: |
bin/specter-diy.bin
bin/specter-diy.hex