aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rwxr-xr-x.github/ci/build-xtensa.sh37
-rwxr-xr-x.github/ci/doc.sh3
-rwxr-xr-x.github/ci/test-nightly.sh3
-rwxr-xr-x.github/ci/test.sh15
4 files changed, 53 insertions, 5 deletions
diff --git a/.github/ci/build-xtensa.sh b/.github/ci/build-xtensa.sh
new file mode 100755
index 000000000..103575bc9
--- /dev/null
+++ b/.github/ci/build-xtensa.sh
@@ -0,0 +1,37 @@
1#!/bin/bash
2## on push branch~=gh-readonly-queue/main/.*
3## on pull_request
4
5set -euo pipefail
6
7export RUSTUP_HOME=/ci/cache/rustup
8export CARGO_HOME=/ci/cache/cargo
9export CARGO_TARGET_DIR=/ci/cache/target
10
11# needed for "dumb HTTP" transport support
12# used when pointing stm32-metapac to a CI-built one.
13export CARGO_NET_GIT_FETCH_WITH_CLI=true
14
15cargo install espup
16/ci/cache/cargo/bin/espup install --toolchain-version 1.84.0.0
17
18# Restore lockfiles
19if [ -f /ci/cache/lockfiles.tar ]; then
20 echo Restoring lockfiles...
21 tar xf /ci/cache/lockfiles.tar
22fi
23
24hashtime restore /ci/cache/filetime.json || true
25hashtime save /ci/cache/filetime.json
26
27mkdir .cargo
28cat > .cargo/config.toml<< EOF
29[unstable]
30build-std = ["alloc", "core"]
31EOF
32
33./ci-xtensa.sh
34
35# Save lockfiles
36echo Saving lockfiles...
37find . -type f -name Cargo.lock -exec tar -cf /ci/cache/lockfiles.tar '{}' \+
diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh
index 47babe8f5..58ffe5f2e 100755
--- a/.github/ci/doc.sh
+++ b/.github/ci/doc.sh
@@ -25,6 +25,7 @@ docserver-builder -i ./embassy-executor -o webroot/crates/embassy-executor/git.z
25docserver-builder -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup 25docserver-builder -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup
26docserver-builder -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup 26docserver-builder -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup
27docserver-builder -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup 27docserver-builder -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup
28docserver-builder -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup
28docserver-builder -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup 29docserver-builder -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup
29docserver-builder -i ./cyw43 -o webroot/crates/cyw43/git.zup 30docserver-builder -i ./cyw43 -o webroot/crates/cyw43/git.zup
30docserver-builder -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup 31docserver-builder -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup
@@ -32,7 +33,7 @@ docserver-builder -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/g
32 33
33docserver-builder -i ./embassy-time -o webroot/crates/embassy-time/git.zup 34docserver-builder -i ./embassy-time -o webroot/crates/embassy-time/git.zup
34docserver-builder -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup 35docserver-builder -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup
35docserver-builder -i ./embassy-time-queue-driver -o webroot/crates/embassy-time-queue-driver/git.zup 36docserver-builder -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup
36 37
37docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup 38docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup
38docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup 39docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup
diff --git a/.github/ci/test-nightly.sh b/.github/ci/test-nightly.sh
index 1724ffe89..a03b55e8d 100755
--- a/.github/ci/test-nightly.sh
+++ b/.github/ci/test-nightly.sh
@@ -9,6 +9,9 @@ export CARGO_HOME=/ci/cache/cargo
9export CARGO_TARGET_DIR=/ci/cache/target 9export CARGO_TARGET_DIR=/ci/cache/target
10mv rust-toolchain-nightly.toml rust-toolchain.toml 10mv rust-toolchain-nightly.toml rust-toolchain.toml
11 11
12cargo test --manifest-path ./embassy-executor/Cargo.toml
13cargo test --manifest-path ./embassy-executor/Cargo.toml --features nightly
14
12MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml 15MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml
13MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml --features nightly 16MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml --features nightly
14MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-sync/Cargo.toml 17MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-sync/Cargo.toml
diff --git a/.github/ci/test.sh b/.github/ci/test.sh
index da0021684..c9b332cf8 100755
--- a/.github/ci/test.sh
+++ b/.github/ci/test.sh
@@ -8,11 +8,16 @@ export RUSTUP_HOME=/ci/cache/rustup
8export CARGO_HOME=/ci/cache/cargo 8export CARGO_HOME=/ci/cache/cargo
9export CARGO_TARGET_DIR=/ci/cache/target 9export CARGO_TARGET_DIR=/ci/cache/target
10 10
11# needed for "dumb HTTP" transport support
12# used when pointing stm32-metapac to a CI-built one.
13export CARGO_NET_GIT_FETCH_WITH_CLI=true
14
15cargo test --manifest-path ./embassy-executor/Cargo.toml
11cargo test --manifest-path ./embassy-futures/Cargo.toml 16cargo test --manifest-path ./embassy-futures/Cargo.toml
12cargo test --manifest-path ./embassy-sync/Cargo.toml 17cargo test --manifest-path ./embassy-sync/Cargo.toml
13cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml 18cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml
14cargo test --manifest-path ./embassy-hal-internal/Cargo.toml 19cargo test --manifest-path ./embassy-hal-internal/Cargo.toml
15cargo test --manifest-path ./embassy-time/Cargo.toml --features generic-queue,mock-driver 20cargo test --manifest-path ./embassy-time/Cargo.toml --features mock-driver,embassy-time-queue-utils/generic-queue-8
16cargo test --manifest-path ./embassy-time-driver/Cargo.toml 21cargo test --manifest-path ./embassy-time-driver/Cargo.toml
17 22
18cargo test --manifest-path ./embassy-boot/Cargo.toml 23cargo test --manifest-path ./embassy-boot/Cargo.toml
@@ -24,8 +29,10 @@ cargo test --manifest-path ./embassy-nrf/Cargo.toml --no-default-features --feat
24cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp2040,_test 29cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp2040,_test
25cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp235xa,_test 30cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp235xa,_test
26 31
27cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,exti,time-driver-any,exti 32cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,time-driver-any,exti,single-bank
28cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f732ze,exti,time-driver-any,exti 33cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,time-driver-any,exti,dual-bank
29cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f769ni,exti,time-driver-any,exti 34cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f732ze,time-driver-any,exti
35cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f769ni,time-driver-any,exti,single-bank
36cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f769ni,time-driver-any,exti,dual-bank
30 37
31cargo test --manifest-path ./embassy-net-adin1110/Cargo.toml 38cargo test --manifest-path ./embassy-net-adin1110/Cargo.toml