From 9f4a1cca3fc88b3846028c7cde6d3a8f34461762 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 29 Apr 2020 10:20:12 +0200 Subject: [PATCH] Add CI with GH actions --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cbbfe88 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +on: [push, pull_request] + +name: CI + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + target: thumbv7em-none-eabihf + override: true + - uses: actions-rs/cargo@v1 + with: + command: build + + examples: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + target: thumbv7em-none-eabihf + override: true + - uses: actions-rs/cargo@v1 + with: + command: build + args: --examples