diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 000000000..b2505e80d --- /dev/null +++ b/.github/workflows/rust.yml @@ -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 diff --git a/test-build.sh b/test-build.sh new file mode 100755 index 000000000..8c93484d2 --- /dev/null +++ b/test-build.sh @@ -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