-
Notifications
You must be signed in to change notification settings - Fork 2
/
ci.sh
executable file
·27 lines (19 loc) · 1.26 KB
/
ci.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -euo pipefail
export CARGO_TARGET_DIR=$PWD/target_ci
export RUSTFLAGS=-Dwarnings
export DEFMT_LOG=trace
find . -name '*.rs' -not -path '*target*' | xargs rustfmt --check --skip-children --unstable-features --edition 2021
cargo build --release --manifest-path rnfc/Cargo.toml --features ''
cargo build --release --manifest-path rnfc/Cargo.toml --features 'defmt'
cargo build --release --manifest-path rnfc/Cargo.toml --features 'log'
RUST_LOG=trace cargo test --release --manifest-path rnfc/Cargo.toml --features 'log'
cargo build --release --manifest-path rnfc-fm175xx/Cargo.toml --features ''
cargo build --release --manifest-path rnfc-fm175xx/Cargo.toml --features 'defmt'
cargo build --release --manifest-path rnfc-fm175xx/Cargo.toml --features 'log'
cargo build --release --manifest-path rnfc-st25r39/Cargo.toml --features ''
cargo build --release --manifest-path rnfc-st25r39/Cargo.toml --features 'defmt'
cargo build --release --manifest-path rnfc-st25r39/Cargo.toml --features 'log'
cargo build --release --manifest-path rnfc-acr122u/Cargo.toml --features ''
cargo build --release --manifest-path examples/st25r39-disco/Cargo.toml --target thumbv7em-none-eabi
cargo build --release --manifest-path examples/fm175xx/Cargo.toml --target thumbv7em-none-eabi