Commit 5a1c06e
authored
Fix Github Actions CI config (#130)
The previous CI executed the `cargo check` command with the `--examples`
flag. The intention was to check both the library itself and the
examples. However, for most MCU versions we don't provide any examples,
they are explicitly feature gated to stm32f303 devices. In these cases
cargo decides that there is nothing to do, so it also doesn't check the
library itself, effectively disabling checking for most MCU families.
We instead want to use the `--all-features` flag. From the cargo docs:
"Check all targets. This is equivalent to specifying
--lib --bins --tests --benches --examples."
However, this doesn't work unfortunately since cargo is complaining
about a missing crate "test" for the thumb7em-none-eabihf target. So
instead we explicitly use `--lib --examples`.
This commit also updates the checkout action to v2 since the bug that
existed in this version is officially fixed now.1 parent fead2eb commit 5a1c06e
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | 1 | | |
6 | 2 | | |
7 | 3 | | |
| |||
39 | 35 | | |
40 | 36 | | |
41 | 37 | | |
42 | | - | |
| 38 | + | |
43 | 39 | | |
44 | 40 | | |
45 | 41 | | |
| |||
49 | 45 | | |
50 | 46 | | |
51 | 47 | | |
52 | | - | |
| 48 | + | |
53 | 49 | | |
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
57 | 53 | | |
58 | | - | |
| 54 | + | |
59 | 55 | | |
60 | 56 | | |
61 | 57 | | |
| |||
67 | 63 | | |
68 | 64 | | |
69 | 65 | | |
70 | | - | |
| 66 | + | |
71 | 67 | | |
72 | 68 | | |
73 | 69 | | |
74 | 70 | | |
75 | 71 | | |
76 | 72 | | |
77 | | - | |
| 73 | + | |
78 | 74 | | |
79 | 75 | | |
80 | 76 | | |
| |||
0 commit comments