-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.07 KB
/
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
38
39
40
---
name: trove CI
on: # yamllint disable-line rule:truthy
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
cargo-fmt-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Install linter components'
run: rustup component add clippy && rustup component add rustfmt
- name: 'clippy linter'
run: cargo clippy --release && cd trove-internal && cargo +stable clippy --target x86_64-unknown-linux-gnu
- name: 'Check formatting'
run: cargo fmt --check && cd trove-internal && cargo fmt --check
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Run trove-internal tests'
run: cd trove-internal && cargo +stable test --target x86_64-unknown-linux-gnu
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Install Dependencies'
run: sudo apt-get update && sudo apt install avr-libc gcc llvm-dev
- name: 'Build firmware'
run: cargo build --release