Skip to content

Commit 903a68f

Browse files
authored
Setup GitHub Actions (#142)
Add CI via GHA Signed-off-by: Daniel Egger <daniel@eggers-club.de>
1 parent 21b8777 commit 903a68f

File tree

4 files changed

+70
-21
lines changed

4 files changed

+70
-21
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on: [push, pull_request]
2+
3+
name: Continuous integration
4+
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
rust:
11+
- stable
12+
include:
13+
- rust: nightly
14+
experimental: true
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
profile: minimal
21+
toolchain: ${{ matrix.rust }}
22+
target: thumbv7em-none-eabihf
23+
override: true
24+
25+
- name: Regular build for all supported MCU models
26+
run: python tools/check.py
27+
28+
- uses: actions-rs/cargo@v1
29+
with:
30+
command: build
31+
args: --examples --features=stm32f401,rt,usb_fs --release

.github/workflows/clippy.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on: [push, pull_request]
2+
3+
name: Clippy check
4+
jobs:
5+
clippy_check:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions-rs/toolchain@v1
10+
with:
11+
profile: minimal
12+
toolchain: stable
13+
target: thumbv7em-none-eabihf
14+
override: true
15+
components: clippy
16+
- uses: actions-rs/clippy-check@v1
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
args: --features=stm32f479

.github/workflows/rustfmt.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on: [push, pull_request]
2+
3+
name: Code formatting check
4+
5+
jobs:
6+
fmt:
7+
name: Rustfmt
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions-rs/toolchain@v1
12+
with:
13+
profile: minimal
14+
toolchain: stable
15+
override: true
16+
components: rustfmt
17+
- uses: actions-rs/cargo@v1
18+
with:
19+
command: fmt
20+
args: --all -- --check

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)