Skip to content

Commit 9ddc68b

Browse files
committed
Add CI
1 parent 4b4da72 commit 9ddc68b

File tree

4 files changed

+142
-0
lines changed

4 files changed

+142
-0
lines changed

.github/workflows/example.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on:
2+
pull_request:
3+
merge_group:
4+
5+
name: example-simple
6+
7+
# Make sure CI fails on all warnings, including Clippy lints
8+
env:
9+
RUSTFLAGS: "-Dwarnings"
10+
11+
jobs:
12+
ci:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
rust:
17+
- stable
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions-rs/toolchain@v1
22+
with:
23+
profile: minimal
24+
toolchain: ${{ matrix.rust }}
25+
target: thumbv7em-none-eabihf
26+
override: true
27+
28+
- name: Format
29+
working-directory: ./examples/simple
30+
run: cargo fmt
31+
- name: Regular build
32+
working-directory: ./examples/simple
33+
run: cargo check
34+
- name: Clippy
35+
working-directory: ./examples/simple
36+
run: cargo clippy

.github/workflows/macros.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
pull_request:
3+
merge_group:
4+
5+
name: macros
6+
7+
# Make sure CI fails on all warnings, including Clippy lints
8+
env:
9+
RUSTFLAGS: "-Dwarnings"
10+
11+
jobs:
12+
ci:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
rust:
17+
- stable
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions-rs/toolchain@v1
22+
with:
23+
profile: minimal
24+
toolchain: ${{ matrix.rust }}
25+
override: true
26+
27+
- name: Format
28+
working-directory: ./macros
29+
run: cargo fmt
30+
- name: Regular build
31+
working-directory: ./macros
32+
run: cargo check
33+
- name: Clippy
34+
working-directory: ./macros
35+
run: cargo clippy
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
pull_request:
3+
merge_group:
4+
5+
name: probe-plotter-tools
6+
7+
# Make sure CI fails on all warnings, including Clippy lints
8+
env:
9+
RUSTFLAGS: "-Dwarnings"
10+
11+
jobs:
12+
ci:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
rust:
17+
- stable
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions-rs/toolchain@v1
22+
with:
23+
profile: minimal
24+
toolchain: ${{ matrix.rust }}
25+
override: true
26+
27+
- name: Format
28+
working-directory: ./probe-plotter-tools
29+
run: cargo fmt
30+
- name: Regular build
31+
working-directory: ./probe-plotter-tools
32+
run: cargo check
33+
- name: Clippy
34+
working-directory: ./probe-plotter-tools
35+
run: cargo clippy
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on:
2+
pull_request:
3+
merge_group:
4+
5+
name: probe-plotter
6+
7+
# Make sure CI fails on all warnings, including Clippy lints
8+
env:
9+
RUSTFLAGS: "-Dwarnings"
10+
11+
jobs:
12+
ci:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
rust:
17+
- stable
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions-rs/toolchain@v1
22+
with:
23+
profile: minimal
24+
toolchain: ${{ matrix.rust }}
25+
target: thumbv7em-none-eabihf
26+
override: true
27+
28+
- name: Format
29+
working-directory: ./probe-plotter
30+
run: cargo fmt
31+
- name: Regular build
32+
working-directory: ./probe-plotter
33+
run: cargo check
34+
- name: Clippy
35+
working-directory: ./probe-plotter
36+
run: cargo clippy

0 commit comments

Comments
 (0)