diff options
| -rw-r--r-- | .github/workflows/rust.yml | 25 | ||||
| -rwxr-xr-x | test-build.sh | 14 |
2 files changed, 39 insertions, 0 deletions
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 @@ | |||
| 1 | name: Rust | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: [ master ] | ||
| 6 | pull_request: | ||
| 7 | branches: [ master ] | ||
| 8 | |||
| 9 | env: | ||
| 10 | CARGO_TERM_COLOR: always | ||
| 11 | |||
| 12 | jobs: | ||
| 13 | build: | ||
| 14 | |||
| 15 | runs-on: ubuntu-latest | ||
| 16 | |||
| 17 | steps: | ||
| 18 | - uses: actions/checkout@v2 | ||
| 19 | - uses: actions-rs/toolchain@v1 | ||
| 20 | with: | ||
| 21 | toolchain: nightly | ||
| 22 | target: thumbv7em-none-eabihf | ||
| 23 | override: true | ||
| 24 | - name: Build | ||
| 25 | 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 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | set -euxo pipefail | ||
| 4 | |||
| 5 | cargo build --target thumbv7em-none-eabihf -p embassy-examples --bins | ||
| 6 | cargo build --target thumbv7em-none-eabihf -p embassy | ||
| 7 | |||
| 8 | # Build with all feature combinations | ||
| 9 | cd embassy-nrf | ||
| 10 | cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52810 | ||
| 11 | #cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52811 # nrf52811-hal doesn't exist yet | ||
| 12 | cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52832 | ||
| 13 | cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52833 | ||
| 14 | cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52840 | ||
