mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-20 14:55:30 +01:00
WIP
This commit is contained in:
parent
09c2e99989
commit
d665ea95b3
66 changed files with 2556 additions and 709 deletions
40
ci/script.sh
40
ci/script.sh
|
|
@ -9,29 +9,43 @@ main() {
|
|||
|
||||
# examples that don't require the timer-queue feature
|
||||
local examples=(
|
||||
async
|
||||
schedule-now
|
||||
empty
|
||||
interrupt
|
||||
event-task
|
||||
)
|
||||
|
||||
# without timer-queue
|
||||
cargo check --target $TARGET
|
||||
|
||||
for ex in ${examples[@]}; do
|
||||
cargo build --target $TARGET --example $ex
|
||||
cargo build --target $TARGET --example $ex --release
|
||||
done
|
||||
|
||||
# with timer-queue
|
||||
cargo check --features timer-queue --target $TARGET
|
||||
|
||||
cargo build --features timer-queue --target $TARGET --examples
|
||||
cargo build --features timer-queue --target $TARGET --examples --release
|
||||
|
||||
# test again but with the cm7-r0p1 feature enabled
|
||||
case $TARGET in
|
||||
thumbv7em-none-eabi*)
|
||||
# without timer-queue
|
||||
cargo check --target $TARGET --features cm7-r0p1
|
||||
|
||||
for ex in ${examples[@]}; do
|
||||
cargo check --target $TARGET --features cm7-r0p1 --example $ex
|
||||
cargo build --target $TARGET --features cm7-r0p1 --example $ex
|
||||
cargo build --target $TARGET --features cm7-r0p1 --example $ex --release
|
||||
done
|
||||
|
||||
cargo check timer-queue --target $TARGET --features "cm7-r0p1 timer-queue"
|
||||
cargo check --target $TARGET --features "cm7-r0p1 timer-queue" --examples
|
||||
;;
|
||||
esac
|
||||
# with timer-queue
|
||||
cargo check --target $TARGET --features "cm7-r0p1 timer-queue"
|
||||
|
||||
cargo check --target $TARGET
|
||||
for ex in ${examples[@]}; do
|
||||
cargo check --target $TARGET --features cm7-r0p1 --example $ex
|
||||
done
|
||||
cargo check --features timer-queue --target $TARGET
|
||||
cargo check --features timer-queue --target $TARGET --examples
|
||||
cargo build --target $TARGET --features "cm7-r0p1 timer-queue" --examples
|
||||
cargo build --target $TARGET --features "cm7-r0p1 timer-queue" --examples --release
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
main
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue