Skip to content

Commit 915033f

Browse files
committed
Add basic CI
1 parent afd51b5 commit 915033f

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Install Rust
16+
uses: actions-rs/toolchain@v1
17+
with:
18+
toolchain: stable
19+
profile: minimal
20+
target: thumbv6m-none-eabi
21+
override: true
22+
components: rustfmt, clippy
23+
24+
- name: rustfmt
25+
run: cargo fmt -- --check
26+
27+
- name: clippy
28+
run: cargo clippy --color=always -- -D warnings
29+
30+
- name: build
31+
run: cargo check
32+
33+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
**/*.rs.bk
44
Cargo.lock
55
bloat_log*
6+
!.gitignore
7+
!.github

0 commit comments

Comments
 (0)