Fix ci build fails
There was some problem with the std examples, so I changed ci to only check a seperate use of the bme680 in a new ci-folder to be no_std compatible.
This commit is contained in:
parent
79955a19be
commit
5ede8096c4
4 changed files with 21 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
/target
|
**/target
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ rust:
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose
|
- cargo build --verbose
|
||||||
- cargo test --verbose
|
- cargo test --verbose
|
||||||
- cargo check --target thumbv7m-none-eabi # check for no_std
|
- cd ci/no_std_test && rustup target add thumbv7m-none-eabi && cargo check --target thumbv7m-none-eabi # check for no_std
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
|
|
9
ci/no_std_test/Cargo.toml
Normal file
9
ci/no_std_test/Cargo.toml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[package]
|
||||||
|
name = "no_std_test"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["marcelbuesing <buesing.marcel@googlemail.com>"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
bme680 = { path = "../../"}
|
||||||
|
log = "0.4"
|
8
ci/no_std_test/src/lib.rs
Normal file
8
ci/no_std_test/src/lib.rs
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#![no_std]
|
||||||
|
|
||||||
|
use bme680::*;
|
||||||
|
use log::info;
|
||||||
|
|
||||||
|
pub fn test_no_std() {
|
||||||
|
info!("chipid {:?}", BME680_CHIP_ID);
|
||||||
|
}
|
Loading…
Reference in a new issue