This commit is contained in:
Dario Nieuwenhuis 2020-10-31 23:03:46 +01:00
parent 0643095695
commit 7ddfeafc84
2 changed files with 39 additions and 0 deletions

25
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: thumbv7em-none-eabihf
override: true
- name: Build
run: ./test-build.sh

14
test-build.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
set -euxo pipefail
cargo build --target thumbv7em-none-eabihf -p embassy-examples --bins
cargo build --target thumbv7em-none-eabihf -p embassy
# Build with all feature combinations
cd embassy-nrf
cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52810
#cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52811 # nrf52811-hal doesn't exist yet
cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52832
cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52833
cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52840