Skip to content

Commit 2238dd0

Browse files
authored
Merge pull request #210 from stm32-rs/use-gh-actions-for-ci
CI via GitHub actions
2 parents ba6e6a0 + ea6b90e commit 2238dd0

File tree

3 files changed

+33
-16
lines changed

3 files changed

+33
-16
lines changed

.github/workflows/ci.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
mcu:
11+
- stm32f100
12+
- stm32f101
13+
- stm32f103
14+
rust:
15+
- stable
16+
include:
17+
- rust: nightly
18+
mcu: stm32f103
19+
experimental: true
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions-rs/toolchain@v1
24+
with:
25+
profile: minimal
26+
toolchain: ${{ matrix.rust }}
27+
target: thumbv7m-none-eabi
28+
override: true
29+
- uses: actions-rs/cargo@v1
30+
with:
31+
command: build
32+
args: --features=${{ matrix.mcu }}

.travis.yml

-16
This file was deleted.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
[HAL]: https://crates.io/crates/embedded-hal
66

7+
[![Continuous integration](https://github.com/stm32-rs/stm32f1xx-hal/workflows/Continuous%20integration/badge.svg)](https://github.com/stm32-rs/stm32f1xx-hal)
78
[![crates.io](https://img.shields.io/crates/v/stm32f1xx-hal.svg)](https://crates.io/crates/stm32f1xx-hal)
89
[![Released API docs](https://docs.rs/stm32f1xx-hal/badge.svg)](https://docs.rs/stm32f1xx-hal)
910

0 commit comments

Comments
 (0)