-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.15 KB
/
satori.yml
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
44
45
46
47
48
49
50
---
name: Satori
on:
push:
branches:
- main
paths:
- 'flake.*'
- 'satori/**'
pull_request:
paths:
- 'flake.*'
- 'satori/**'
jobs:
firmware:
name: Firmware
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./satori/firmware/firmware
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- name: Setup Toolchain
run: |
eval "$(nix print-dev-env)"
distrobox create --name hoshiguma-satori --yes --image ghcr.io/dannixon/esp-rs-distrobox:v2
distrobox enter hoshiguma-satori -- espup install
- name: Format
run: |
eval "$(nix print-dev-env)"
. $HOME/export-esp.sh
distrobox enter hoshiguma-satori -- cargo fmt -- --check
- name: Clippy
run: |
eval "$(nix print-dev-env)"
. $HOME/export-esp.sh
distrobox enter hoshiguma-satori -- cargo clippy -- -Dwarnings
- name: Build
run: |
eval "$(nix print-dev-env)"
. $HOME/export-esp.sh
distrobox enter hoshiguma-satori -- cargo build --release