Skip to content

Commit

Permalink
Merge pull request nrf-rs#37 from robyoung/add-nrf52-dk-workflow
Browse files Browse the repository at this point in the history
Update CI for nrf-rs
  • Loading branch information
therealprof authored Apr 25, 2021
2 parents 7571fd2 + dfef5ee commit 94526e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 25 deletions.
19 changes: 0 additions & 19 deletions .github/scripts/build-examples.sh

This file was deleted.

20 changes: 14 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,36 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
rust:
- stable
- beta
- nightly
- 1.51.0 # Minimum supported rust version (MSRV)

steps:
- uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
target: thumbv6m-none-eabi
toolchain: ${{ matrix.rust }}
override: true
target: thumbv6m-none-eabi
components: rustfmt, clippy

- name: rustfmt
run: cargo fmt -- --check

- name: clippy
run: cargo clippy --color=always -- -D warnings

- name: build
run: cargo build --target=thumbv6m-none-eabi

- name: clippy
run: cargo clippy --color=always -- -D warnings

- name: build examples
run: .github/scripts/build-examples.sh
run: cargo build --examples --target=thumbv6m-none-eabi


0 comments on commit 94526e2

Please sign in to comment.