Skip to content

Commit 0900182

Browse files
committed
add GitHub CI workflow
1 parent 122be50 commit 0900182

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/CI.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Install target
18+
run: rustup target add thumbv7em-none-eabihf
19+
- name: Install flip-link
20+
run: cargo install flip-link
21+
- uses: actions/checkout@v3
22+
- uses: actions-rs/cargo@v1
23+
with:
24+
command: build
25+
- uses: actions-rs/cargo@v1
26+
with:
27+
command: test
28+
- uses: actions-rs/cargo@v1
29+
with:
30+
command: fmt
31+
args: --all -- --check
32+
- uses: actions-rs/cargo@v1
33+
with:
34+
command: clippy

0 commit comments

Comments
 (0)