diff options
| author | Dario Nieuwenhuis <[email protected]> | 2020-10-31 23:03:46 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2020-10-31 23:03:46 +0100 |
| commit | 7ddfeafc84827b38956e91fa25e7d4d3a7621380 (patch) | |
| tree | caf398fa2cd53bc76d0b46eb5a0c545f1a0460c8 | |
| parent | 0643095695949c2ce42312c353cb5e9510ca4618 (diff) | |
Add CI
| -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 | ||
