From ea6b90ec93564d76cf72bf585ff5aeb8ed30d5a7 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Sun, 26 Apr 2020 18:12:33 +0200 Subject: [PATCH] CI via GitHub actions --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 16 ---------------- README.md | 1 + 3 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..bb704cee --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +on: [push, pull_request] + +name: Continuous integration + +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + mcu: + - stm32f100 + - stm32f101 + - stm32f103 + rust: + - stable + include: + - rust: nightly + mcu: stm32f103 + experimental: true + + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + target: thumbv7m-none-eabi + override: true + - uses: actions-rs/cargo@v1 + with: + command: build + args: --features=${{ matrix.mcu }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ad2ad2a9..00000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: rust -rust: - - stable - - nightly -cache: cargo -env: -- MCU=stm32f103 -- MCU=stm32f101 -- MCU=stm32f100 -matrix: - allow_failures: - - rust: nightly - fast_finish: true -script: - - rustup target add thumbv7m-none-eabi - - cargo build --features=$MCU diff --git a/README.md b/README.md index 0737a974..e6675e1b 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [HAL]: https://crates.io/crates/embedded-hal +[![Continuous integration](https://github.com/stm32-rs/stm32f1xx-hal/workflows/Continuous%20integration/badge.svg)](https://github.com/stm32-rs/stm32f1xx-hal) [![crates.io](https://img.shields.io/crates/v/stm32f1xx-hal.svg)](https://crates.io/crates/stm32f1xx-hal) [![Released API docs](https://docs.rs/stm32f1xx-hal/badge.svg)](https://docs.rs/stm32f1xx-hal)