We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac4fe90 commit 2bd25f4Copy full SHA for 2bd25f4
.github/scripts/build-examples.sh
@@ -0,0 +1,19 @@
1
+#!/usr/bin/env bash
2
+
3
+_status=0
4
5
+for example in $(ls examples | sed s/\.rs$//); do
6
+ output=$(cargo build --target=thumbv6m-none-eabi --example=$example --color=always 2>&1)
7
+ result=$?
8
9
+ if [[ $result == 0 ]]; then
10
+ echo "::group::✅ $example ok"
11
+ else
12
+ echo "::group::💥 $example fail"
13
+ _status=1
14
+ fi
15
+ echo "$output"
16
+ echo "::endgroup::"
17
+done
18
19
+exit $_status
.github/workflows/ci.yaml
@@ -28,6 +28,9 @@ jobs:
28
run: cargo clippy --color=always -- -D warnings
29
30
- name: build
31
- run: cargo check
+ run: cargo build --target=thumbv6m-none-eabi
32
33
+ - name: build examples
34
+ run: .github/scripts/build-examples.sh
35
36
0 commit comments