Skip to content

Commit b86fe26

Browse files
committed
Add e-h-bus to CI
1 parent b92b0db commit b86fe26

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/workflows/ci-bus.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: CI Bus
7+
8+
env:
9+
RUSTFLAGS: '--deny warnings'
10+
11+
jobs:
12+
ci-linux-bus:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
rust: [nightly]
17+
TARGET: [x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi]
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: ${{ matrix.TARGET }}
26+
override: true
27+
- run: cargo check --target=${{ matrix.TARGET }}
28+
working-directory: embedded-hal-bus
29+
30+
- run: cargo test --target=${{ matrix.TARGET }}
31+
if: contains(matrix.TARGET, 'linux')
32+
working-directory: embedded-hal-bus

.github/workflows/clippy-bus.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Clippy check
7+
jobs:
8+
clippy_check-bus:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
profile: minimal
15+
toolchain: nightly
16+
override: true
17+
components: clippy
18+
- run: cargo clippy
19+
working-directory: embedded-hal-bus

0 commit comments

Comments
 (0)