-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (73 loc) · 2.16 KB
/
koishi.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
name: Koishi
on:
push:
branches:
- main
paths:
- 'flake.*'
- 'koishi/**'
pull_request:
paths:
- 'flake.*'
- 'koishi/**'
jobs:
formatting-firmware:
name: Formatting (firmware)
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./koishi/firmware
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
- name: Clippy
run: nix develop --command cargo clippy -- -Dwarnings
formatting-firmware-tests:
name: Formatting (firmware tests)
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./koishi/firmware-tests
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
- name: Clippy
run: nix develop --command cargo clippy -- -Dwarnings
formatting-telemetry-receiver:
name: Formatting (telemetry-receiver)
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./koishi/telemetry-receiver
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
- name: Clippy
run: nix develop --command cargo clippy -- -Dwarnings
build-and-test-firmware:
name: Build and Test (firmware)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
- name: Build
working-directory: ./koishi/firmware
run: |
# Build as intended for hardware first
nix develop --command cargo build --release
nix develop --command cargo build --release --features reporting_postcard
# Build for simulator tests
nix develop --command cargo build --release --features simulator
- name: In Simulator Tests
working-directory: ./koishi/firmware-tests
run: nix develop --command cargo test
build-and-test-telemetry-receiver:
name: Build and Test (telemetry-receiver)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
- name: Build
working-directory: ./koishi/firmware
run: nix develop --command cargo build