aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/rust.yml25
-rwxr-xr-xtest-build.sh14
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 @@
1name: Rust
2
3on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8
9env:
10 CARGO_TERM_COLOR: always
11
12jobs:
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
3set -euxo pipefail
4
5cargo build --target thumbv7em-none-eabihf -p embassy-examples --bins
6cargo build --target thumbv7em-none-eabihf -p embassy
7
8# Build with all feature combinations
9cd embassy-nrf
10cargo 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
12cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52832
13cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52833
14cargo build --target thumbv7em-none-eabihf -p embassy-nrf --features 52840