diff options
| author | jrmoulton <[email protected]> | 2025-06-10 15:47:54 -0600 |
|---|---|---|
| committer | jrmoulton <[email protected]> | 2025-06-10 15:48:36 -0600 |
| commit | cfad9798ff99d4de0571a512d156b5fe1ef1d427 (patch) | |
| tree | fc3bf670f82d139de19466cddad1e909db7f3d2e /.github | |
| parent | fc342915e6155dec7bafa3e135da7f37a9a07f5c (diff) | |
| parent | 6186d111a5c150946ee5b7e9e68d987a38c1a463 (diff) | |
merge new embassy changes
Diffstat (limited to '.github')
| -rwxr-xr-x | .github/ci/build-xtensa.sh | 37 | ||||
| -rwxr-xr-x | .github/ci/doc.sh | 3 | ||||
| -rwxr-xr-x | .github/ci/test-nightly.sh | 3 | ||||
| -rwxr-xr-x | .github/ci/test.sh | 15 |
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 | |||
| 5 | set -euo pipefail | ||
| 6 | |||
| 7 | export RUSTUP_HOME=/ci/cache/rustup | ||
| 8 | export CARGO_HOME=/ci/cache/cargo | ||
| 9 | export 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. | ||
| 13 | export CARGO_NET_GIT_FETCH_WITH_CLI=true | ||
| 14 | |||
| 15 | cargo install espup | ||
| 16 | /ci/cache/cargo/bin/espup install --toolchain-version 1.84.0.0 | ||
| 17 | |||
| 18 | # Restore lockfiles | ||
| 19 | if [ -f /ci/cache/lockfiles.tar ]; then | ||
| 20 | echo Restoring lockfiles... | ||
| 21 | tar xf /ci/cache/lockfiles.tar | ||
| 22 | fi | ||
| 23 | |||
| 24 | hashtime restore /ci/cache/filetime.json || true | ||
| 25 | hashtime save /ci/cache/filetime.json | ||
| 26 | |||
| 27 | mkdir .cargo | ||
| 28 | cat > .cargo/config.toml<< EOF | ||
| 29 | [unstable] | ||
| 30 | build-std = ["alloc", "core"] | ||
| 31 | EOF | ||
| 32 | |||
| 33 | ./ci-xtensa.sh | ||
| 34 | |||
| 35 | # Save lockfiles | ||
| 36 | echo Saving lockfiles... | ||
| 37 | find . -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 | |||
| 25 | docserver-builder -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup | 25 | docserver-builder -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup |
| 26 | docserver-builder -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup | 26 | docserver-builder -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup |
| 27 | docserver-builder -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup | 27 | docserver-builder -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup |
| 28 | docserver-builder -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup | ||
| 28 | docserver-builder -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup | 29 | docserver-builder -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup |
| 29 | docserver-builder -i ./cyw43 -o webroot/crates/cyw43/git.zup | 30 | docserver-builder -i ./cyw43 -o webroot/crates/cyw43/git.zup |
| 30 | docserver-builder -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup | 31 | docserver-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 | ||
| 33 | docserver-builder -i ./embassy-time -o webroot/crates/embassy-time/git.zup | 34 | docserver-builder -i ./embassy-time -o webroot/crates/embassy-time/git.zup |
| 34 | docserver-builder -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup | 35 | docserver-builder -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup |
| 35 | docserver-builder -i ./embassy-time-queue-driver -o webroot/crates/embassy-time-queue-driver/git.zup | 36 | docserver-builder -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup |
| 36 | 37 | ||
| 37 | docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup | 38 | docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup |
| 38 | docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup | 39 | docserver-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 | |||
| 9 | export CARGO_TARGET_DIR=/ci/cache/target | 9 | export CARGO_TARGET_DIR=/ci/cache/target |
| 10 | mv rust-toolchain-nightly.toml rust-toolchain.toml | 10 | mv rust-toolchain-nightly.toml rust-toolchain.toml |
| 11 | 11 | ||
| 12 | cargo test --manifest-path ./embassy-executor/Cargo.toml | ||
| 13 | cargo test --manifest-path ./embassy-executor/Cargo.toml --features nightly | ||
| 14 | |||
| 12 | MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml | 15 | MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml |
| 13 | MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml --features nightly | 16 | MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml --features nightly |
| 14 | MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-sync/Cargo.toml | 17 | MIRIFLAGS=-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 | |||
| 8 | export CARGO_HOME=/ci/cache/cargo | 8 | export CARGO_HOME=/ci/cache/cargo |
| 9 | export CARGO_TARGET_DIR=/ci/cache/target | 9 | export 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. | ||
| 13 | export CARGO_NET_GIT_FETCH_WITH_CLI=true | ||
| 14 | |||
| 15 | cargo test --manifest-path ./embassy-executor/Cargo.toml | ||
| 11 | cargo test --manifest-path ./embassy-futures/Cargo.toml | 16 | cargo test --manifest-path ./embassy-futures/Cargo.toml |
| 12 | cargo test --manifest-path ./embassy-sync/Cargo.toml | 17 | cargo test --manifest-path ./embassy-sync/Cargo.toml |
| 13 | cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml | 18 | cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml |
| 14 | cargo test --manifest-path ./embassy-hal-internal/Cargo.toml | 19 | cargo test --manifest-path ./embassy-hal-internal/Cargo.toml |
| 15 | cargo test --manifest-path ./embassy-time/Cargo.toml --features generic-queue,mock-driver | 20 | cargo test --manifest-path ./embassy-time/Cargo.toml --features mock-driver,embassy-time-queue-utils/generic-queue-8 |
| 16 | cargo test --manifest-path ./embassy-time-driver/Cargo.toml | 21 | cargo test --manifest-path ./embassy-time-driver/Cargo.toml |
| 17 | 22 | ||
| 18 | cargo test --manifest-path ./embassy-boot/Cargo.toml | 23 | cargo test --manifest-path ./embassy-boot/Cargo.toml |
| @@ -24,8 +29,10 @@ cargo test --manifest-path ./embassy-nrf/Cargo.toml --no-default-features --feat | |||
| 24 | cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp2040,_test | 29 | cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp2040,_test |
| 25 | cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp235xa,_test | 30 | cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp235xa,_test |
| 26 | 31 | ||
| 27 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,exti,time-driver-any,exti | 32 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,time-driver-any,exti,single-bank |
| 28 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f732ze,exti,time-driver-any,exti | 33 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,time-driver-any,exti,dual-bank |
| 29 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f769ni,exti,time-driver-any,exti | 34 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f732ze,time-driver-any,exti |
| 35 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f769ni,time-driver-any,exti,single-bank | ||
| 36 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f769ni,time-driver-any,exti,dual-bank | ||
| 30 | 37 | ||
| 31 | cargo test --manifest-path ./embassy-net-adin1110/Cargo.toml | 38 | cargo test --manifest-path ./embassy-net-adin1110/Cargo.toml |
