-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 934 Bytes
/
ci.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
on:
push:
branches: [master, main]
pull_request:
name: CI
jobs:
firmware-build:
name: Build firmware
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-10-10
target: riscv32imc-unknown-none-elf
override: true
- name: Run check
env:
WIFI_SSID: "example-ssid"
WIFI_PASS: "example-pass"
SPACEAPI_SENSOR_ENDPOINT: "http://example.com/sensors/people_now_present/"
run: cd firmware && cargo check --target riscv32imc-unknown-none-elf --release
rustfmt:
name: Check code formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.82.0
components: rustfmt
override: true
- run: cd firmware && cargo fmt -- --check