From 9dc4375f185d5098d9b61116bb5c5279e7298222 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 12 Aug 2024 00:02:15 +0200 Subject: rp: update PAC, fix CI. --- .github/ci/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/ci/test.sh b/.github/ci/test.sh index 41da644fc..771251bd1 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh @@ -21,7 +21,7 @@ cargo test --manifest-path ./embassy-boot/Cargo.toml --features ed25519-salty cargo test --manifest-path ./embassy-nrf/Cargo.toml --no-default-features --features nrf52840,time-driver-rtc1,gpiote -cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver +cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp2040 cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,exti,time-driver-any,exti cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f732ze,exti,time-driver-any,exti -- cgit From 13cb4314725bb60d2252575f8fd06828e8661064 Mon Sep 17 00:00:00 2001 From: Caleb Jamison Date: Mon, 12 Aug 2024 05:47:16 -0400 Subject: Enable rp235x doc tests, fixup feature doc The rp235x doc test requires an unfortunate workaround using a private feature, "_test", in order compile. --- .github/ci/test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/ci/test.sh b/.github/ci/test.sh index 771251bd1..da0021684 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh @@ -21,7 +21,8 @@ cargo test --manifest-path ./embassy-boot/Cargo.toml --features ed25519-salty cargo test --manifest-path ./embassy-nrf/Cargo.toml --no-default-features --features nrf52840,time-driver-rtc1,gpiote -cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp2040 +cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp2040,_test +cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp235xa,_test cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,exti,time-driver-any,exti cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f732ze,exti,time-driver-any,exti -- cgit From ccce870642f295cda901493df422b25d211da503 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Thu, 5 Sep 2024 18:01:05 -0400 Subject: ci: Fix the "test" task when using stm32-metapac from a CI artifact --- .github/ci/test.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.github') diff --git a/.github/ci/test.sh b/.github/ci/test.sh index da0021684..0de265049 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh @@ -8,6 +8,10 @@ export RUSTUP_HOME=/ci/cache/rustup export CARGO_HOME=/ci/cache/cargo export CARGO_TARGET_DIR=/ci/cache/target +# needed for "dumb HTTP" transport support +# used when pointing stm32-metapac to a CI-built one. +export CARGO_NET_GIT_FETCH_WITH_CLI=true + cargo test --manifest-path ./embassy-futures/Cargo.toml cargo test --manifest-path ./embassy-sync/Cargo.toml cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml -- cgit From 8f9826872332fb0d2abd3ffc3889ff4c0e1c3909 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 20 Oct 2024 23:48:58 +0200 Subject: executor: add compile-fail / ui tests. --- .github/ci/test-nightly.sh | 3 +++ .github/ci/test.sh | 1 + 2 files changed, 4 insertions(+) (limited to '.github') 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 export CARGO_TARGET_DIR=/ci/cache/target mv rust-toolchain-nightly.toml rust-toolchain.toml +cargo test --manifest-path ./embassy-executor/Cargo.toml +cargo test --manifest-path ./embassy-executor/Cargo.toml --features nightly + MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml --features nightly 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 0de265049..0fe088bfe 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh @@ -12,6 +12,7 @@ export CARGO_TARGET_DIR=/ci/cache/target # used when pointing stm32-metapac to a CI-built one. export CARGO_NET_GIT_FETCH_WITH_CLI=true +cargo test --manifest-path ./embassy-executor/Cargo.toml cargo test --manifest-path ./embassy-futures/Cargo.toml cargo test --manifest-path ./embassy-sync/Cargo.toml cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml -- cgit From 95b84494bc2f6a137e7dfe349971b4386ec66411 Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Tue, 12 Nov 2024 14:09:24 +0000 Subject: basic xtensa CI --- .github/ci/build-xtensa.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 .github/ci/build-xtensa.sh (limited to '.github') diff --git a/.github/ci/build-xtensa.sh b/.github/ci/build-xtensa.sh new file mode 100755 index 000000000..a13391c82 --- /dev/null +++ b/.github/ci/build-xtensa.sh @@ -0,0 +1,37 @@ +#!/bin/bash +## on push branch~=gh-readonly-queue/main/.* +## on pull_request + +set -euo pipefail + +export RUSTUP_HOME=/ci/cache/rustup +export CARGO_HOME=/ci/cache/cargo +export CARGO_TARGET_DIR=/ci/cache/target + +# needed for "dumb HTTP" transport support +# used when pointing stm32-metapac to a CI-built one. +export CARGO_NET_GIT_FETCH_WITH_CLI=true + +cargo install espup +/ci/cache/cargo/bin/espup install + +# Restore lockfiles +if [ -f /ci/cache/lockfiles.tar ]; then + echo Restoring lockfiles... + tar xf /ci/cache/lockfiles.tar +fi + +hashtime restore /ci/cache/filetime.json || true +hashtime save /ci/cache/filetime.json + +mkdir .cargo +cat > .cargo/config.toml<< EOF +[unstable] +build-std = ["alloc", "core"] +EOF + +./ci-xtensa.sh + +# Save lockfiles +echo Saving lockfiles... +find . -type f -name Cargo.lock -exec tar -cf /ci/cache/lockfiles.tar '{}' \+ -- cgit From 5a5495aac43d75610735f2ca80fb6c8e8f31ed71 Mon Sep 17 00:00:00 2001 From: Dániel Buga Date: Tue, 26 Nov 2024 23:54:21 +0100 Subject: Refactor integrated-timers --- .github/ci/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/ci/test.sh b/.github/ci/test.sh index 0fe088bfe..285f3f29e 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh @@ -17,7 +17,7 @@ cargo test --manifest-path ./embassy-futures/Cargo.toml cargo test --manifest-path ./embassy-sync/Cargo.toml cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml cargo test --manifest-path ./embassy-hal-internal/Cargo.toml -cargo test --manifest-path ./embassy-time/Cargo.toml --features generic-queue,mock-driver +cargo test --manifest-path ./embassy-time/Cargo.toml --features mock-driver cargo test --manifest-path ./embassy-time-driver/Cargo.toml cargo test --manifest-path ./embassy-boot/Cargo.toml -- cgit From b268b1795fed58544c166c41842ce0d66328aa3e Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 8 Dec 2024 23:27:32 +0100 Subject: Merge time-driver and time-queue-driver traits, make HALs own and handle the queue. --- .github/ci/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/ci/test.sh b/.github/ci/test.sh index 285f3f29e..0fd6820d2 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh @@ -17,7 +17,7 @@ cargo test --manifest-path ./embassy-futures/Cargo.toml cargo test --manifest-path ./embassy-sync/Cargo.toml cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml cargo test --manifest-path ./embassy-hal-internal/Cargo.toml -cargo test --manifest-path ./embassy-time/Cargo.toml --features mock-driver +cargo test --manifest-path ./embassy-time/Cargo.toml --features mock-driver,embassy-time-queue-driver/generic-queue-8 cargo test --manifest-path ./embassy-time-driver/Cargo.toml cargo test --manifest-path ./embassy-boot/Cargo.toml -- cgit From b912dc197d91d9b4d40c81e59589cba234b53888 Mon Sep 17 00:00:00 2001 From: Dániel Buga Date: Wed, 18 Dec 2024 11:54:11 +0100 Subject: Force use 1.83 for Xtensa --- .github/ci/build-xtensa.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/ci/build-xtensa.sh b/.github/ci/build-xtensa.sh index a13391c82..88357a041 100755 --- a/.github/ci/build-xtensa.sh +++ b/.github/ci/build-xtensa.sh @@ -13,7 +13,7 @@ export CARGO_TARGET_DIR=/ci/cache/target export CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install espup -/ci/cache/cargo/bin/espup install +/ci/cache/cargo/bin/espup install --toolchain-version 1.83.0.1 # Restore lockfiles if [ -f /ci/cache/lockfiles.tar ]; then -- cgit From ab8ca3f126447edb3a9eb06aa6fd6cd394219c17 Mon Sep 17 00:00:00 2001 From: Dániel Buga Date: Fri, 20 Dec 2024 12:45:24 +0100 Subject: Rename ETQD, bump date --- .github/ci/doc.sh | 2 +- .github/ci/test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 47babe8f5..c92892406 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh @@ -32,7 +32,7 @@ docserver-builder -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/g docserver-builder -i ./embassy-time -o webroot/crates/embassy-time/git.zup docserver-builder -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup -docserver-builder -i ./embassy-time-queue-driver -o webroot/crates/embassy-time-queue-driver/git.zup +docserver-builder -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup diff --git a/.github/ci/test.sh b/.github/ci/test.sh index 0fd6820d2..c78865e54 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh @@ -17,7 +17,7 @@ cargo test --manifest-path ./embassy-futures/Cargo.toml cargo test --manifest-path ./embassy-sync/Cargo.toml cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml cargo test --manifest-path ./embassy-hal-internal/Cargo.toml -cargo test --manifest-path ./embassy-time/Cargo.toml --features mock-driver,embassy-time-queue-driver/generic-queue-8 +cargo test --manifest-path ./embassy-time/Cargo.toml --features mock-driver,embassy-time-queue-utils/generic-queue-8 cargo test --manifest-path ./embassy-time-driver/Cargo.toml cargo test --manifest-path ./embassy-boot/Cargo.toml -- cgit From 5050b2fe8857644a7589b2b728bf32423b1c5089 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 17 Feb 2025 16:48:27 +0100 Subject: Update to Rust 1.84 --- .github/ci/build-xtensa.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/ci/build-xtensa.sh b/.github/ci/build-xtensa.sh index 88357a041..103575bc9 100755 --- a/.github/ci/build-xtensa.sh +++ b/.github/ci/build-xtensa.sh @@ -13,7 +13,7 @@ export CARGO_TARGET_DIR=/ci/cache/target export CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install espup -/ci/cache/cargo/bin/espup install --toolchain-version 1.83.0.1 +/ci/cache/cargo/bin/espup install --toolchain-version 1.84.0.0 # Restore lockfiles if [ -f /ci/cache/lockfiles.tar ]; then -- cgit From 9afb385f6d92149ff15cf03c3bfaa8cb512a6191 Mon Sep 17 00:00:00 2001 From: i509VCB Date: Wed, 19 Mar 2025 13:05:10 -0500 Subject: Add docs related things --- .github/ci/doc.sh | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index c92892406..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 docserver-builder -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup docserver-builder -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup docserver-builder -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup +docserver-builder -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup docserver-builder -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup docserver-builder -i ./cyw43 -o webroot/crates/cyw43/git.zup docserver-builder -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup -- cgit From ace20f40ad1b2168c9d2b78155c0cf29244bc456 Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Thu, 1 May 2025 10:35:10 +0200 Subject: Maybe fixed all CI --- .github/ci/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/ci/test.sh b/.github/ci/test.sh index c78865e54..88962a533 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh @@ -29,8 +29,8 @@ cargo test --manifest-path ./embassy-nrf/Cargo.toml --no-default-features --feat cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp2040,_test cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp235xa,_test -cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,exti,time-driver-any,exti +cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,exti,time-driver-any,exti,dual-bank cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f732ze,exti,time-driver-any,exti -cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f769ni,exti,time-driver-any,exti +cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f769ni,exti,time-driver-any,exti,single-bank cargo test --manifest-path ./embassy-net-adin1110/Cargo.toml -- cgit From 59d839a2b8a488bf1e9056f46ba1dff61148642b Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Thu, 1 May 2025 13:37:12 +0200 Subject: Fix dual bank support for F7 --- .github/ci/test.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/ci/test.sh b/.github/ci/test.sh index 88962a533..c9b332cf8 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh @@ -29,8 +29,10 @@ cargo test --manifest-path ./embassy-nrf/Cargo.toml --no-default-features --feat cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp2040,_test cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --features time-driver,rp235xa,_test -cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,exti,time-driver-any,exti,dual-bank -cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f732ze,exti,time-driver-any,exti -cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f769ni,exti,time-driver-any,exti,single-bank +cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,time-driver-any,exti,single-bank +cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f429vg,time-driver-any,exti,dual-bank +cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f732ze,time-driver-any,exti +cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f769ni,time-driver-any,exti,single-bank +cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features stm32f769ni,time-driver-any,exti,dual-bank cargo test --manifest-path ./embassy-net-adin1110/Cargo.toml -- cgit From a8e905f14ecf238675b343c037d20700ab6f4881 Mon Sep 17 00:00:00 2001 From: "robert.jeutter" Date: Thu, 5 Jun 2025 06:48:44 +0200 Subject: net-nrf91: add nrf9151 support. --- .github/ci/doc.sh | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 58ffe5f2e..06c61f8c0 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh @@ -42,6 +42,7 @@ docserver-builder -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/g docserver-builder -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup docserver-builder -i ./embassy-net -o webroot/crates/embassy-net/git.zup +docserver-builder -i ./embassy-net-nrf91 -o webroot/crates/embassy-net-nrf91/git.zup docserver-builder -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup docserver-builder -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup docserver-builder -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup -- cgit From 510adb3b69daffec533292140221be36e2ed5ba2 Mon Sep 17 00:00:00 2001 From: i509VCB Date: Tue, 22 Jul 2025 18:30:31 -0500 Subject: nxp: make docs generate --- .github/ci/doc.sh | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 06c61f8c0..90662af82 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh @@ -26,6 +26,7 @@ docserver-builder -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup docserver-builder -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup docserver-builder -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup docserver-builder -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup +docserver-builder -i ./embassy-nxp -o webroot/crates/embassy-nxp/git.zup docserver-builder -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup docserver-builder -i ./cyw43 -o webroot/crates/cyw43/git.zup docserver-builder -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup -- cgit From b49d809346bb420c7994c75fa0121f6d28870c05 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 24 Jul 2025 23:29:54 +0200 Subject: Add dedup to doc job. --- .github/ci/doc.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to '.github') diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 90662af82..9162b37ae 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh @@ -1,5 +1,7 @@ #!/bin/bash ## on push branch=main +## priority -10 +## dedup dequeue set -euxo pipefail -- cgit From 915513753aea689f73d1300acc069ac985be3a0b Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 24 Jul 2025 23:30:36 +0200 Subject: Add dedup to book job. --- .github/ci/book.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to '.github') diff --git a/.github/ci/book.sh b/.github/ci/book.sh index 285cdc8fa..2466f53f5 100755 --- a/.github/ci/book.sh +++ b/.github/ci/book.sh @@ -1,5 +1,7 @@ #!/bin/bash ## on push branch=main +## priority -9 +## dedup dequeue set -euxo pipefail -- cgit From 77a8bc27e9c34e363f321132ebb9e8d8ff684a9f Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 27 Jul 2025 02:03:43 +0200 Subject: ci: lower book, doc job prio --- .github/ci/book.sh | 2 +- .github/ci/doc.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/ci/book.sh b/.github/ci/book.sh index 2466f53f5..c91d10d16 100755 --- a/.github/ci/book.sh +++ b/.github/ci/book.sh @@ -1,6 +1,6 @@ #!/bin/bash ## on push branch=main -## priority -9 +## priority -100 ## dedup dequeue set -euxo pipefail diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 9162b37ae..26971afdc 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh @@ -1,6 +1,6 @@ #!/bin/bash ## on push branch=main -## priority -10 +## priority -100 ## dedup dequeue set -euxo pipefail -- cgit From c708cefe03363135c466a3c0e8543a95973bce7a Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 27 Jul 2025 23:38:23 +0200 Subject: Add cooldown to doc, book jobs. --- .github/ci/book.sh | 2 ++ .github/ci/doc.sh | 1 + 2 files changed, 3 insertions(+) (limited to '.github') diff --git a/.github/ci/book.sh b/.github/ci/book.sh index c91d10d16..dada4b348 100755 --- a/.github/ci/book.sh +++ b/.github/ci/book.sh @@ -2,6 +2,7 @@ ## on push branch=main ## priority -100 ## dedup dequeue +## cooldown 15m set -euxo pipefail @@ -17,3 +18,4 @@ kubectl exec $POD -- mkdir -p /usr/share/nginx/html kubectl cp book.tar $POD:/usr/share/nginx/html/ kubectl exec $POD -- find /usr/share/nginx/html kubectl exec $POD -- tar -C /usr/share/nginx/html -xvf /usr/share/nginx/html/book.tar +3 diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 26971afdc..ac96008d8 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh @@ -2,6 +2,7 @@ ## on push branch=main ## priority -100 ## dedup dequeue +## cooldown 15m set -euxo pipefail -- cgit From b00de39af82dee0c0e46ae504b5790ed2d61178f Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 29 Jul 2025 13:31:54 +0200 Subject: Fix build of embassy-time with std+defmt. --- .github/ci/book.sh | 1 - 1 file changed, 1 deletion(-) (limited to '.github') diff --git a/.github/ci/book.sh b/.github/ci/book.sh index dada4b348..6c300bf09 100755 --- a/.github/ci/book.sh +++ b/.github/ci/book.sh @@ -18,4 +18,3 @@ kubectl exec $POD -- mkdir -p /usr/share/nginx/html kubectl cp book.tar $POD:/usr/share/nginx/html/ kubectl exec $POD -- find /usr/share/nginx/html kubectl exec $POD -- tar -C /usr/share/nginx/html -xvf /usr/share/nginx/html/book.tar -3 -- cgit From 8bbfa7ac1b7165a690f5062ce85c45898b3160bd Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Tue, 12 Aug 2025 21:35:54 +0200 Subject: chore: add changelog enforcement --- .github/workflows/changelog.yml | 353 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 353 insertions(+) create mode 100644 .github/workflows/changelog.yml (limited to '.github') diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 000000000..94e8f353a --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,353 @@ +name: Changelog check + +on: + pull_request: + # We will not track changes for the following packages/directories. + paths-ignore: + - "/examples/" + - "/docs/" + - "/out/" + - "/tests/" + - "/release/" + - "/cyw43-firmware/" + # Run on labeled/unlabeled in addition to defaults to detect + # adding/removing skip-changelog labels. + types: [opened, reopened, labeled, unlabeled, synchronize] + +jobs: + changelog: + runs-on: ubuntu-latest + + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Check which package is modified + uses: dorny/paths-filter@v3 + id: changes + with: + filters: | + cyw43: + - 'cyw43/**' + cyw43-pio: + - 'cyw43-pio/**' + embassy-boot: + - 'embassy-boot/**' + embassy-boot-nrf: + - 'embassy-boot-nrf/**' + embassy-boot-rp: + - 'embassy-boot-rp/**' + embassy-boot-stm32: + - 'embassy-boot-stm32/**' + embassy-embedded-hal: + - 'embassy-embedded-hal/**' + embassy-executor: + - 'embassy-executor/**' + embassy-executor-macros: + - 'embassy-executor-macros/**' + embassy-futures: + - 'embassy-futures/**' + embassy-imxrt: + - 'embassy-imxrt/**' + embassy-mspm0: + - 'embassy-mspm0/**' + embassy-net: + - 'embassy-net/**' + embassy-net-adin1110: + - 'embassy-net-adin1110/**' + embassy-net-driver: + - 'embassy-net-driver/**' + embassy-net-driver-channel: + - 'embassy-net-driver-channel/**' + embassy-net-enc28j60: + - 'embassy-net-enc28j60/**' + embassy-net-esp-hosted: + - 'embassy-net-esp-hosted/**' + embassy-net-nrf91: + - 'embassy-net-nrf91/**' + embassy-net-ppp: + - 'embassy-net-ppp/**' + embassy-net-tuntap: + - 'embassy-net-tuntap/**' + embassy-net-wiznet: + - 'embassy-net-wiznet/**' + embassy-nrf: + - 'embassy-nrf/**' + embassy-nxp: + - 'embassy-nxp/**' + embassy-rp: + - 'embassy-rp/**' + embassy-stm32: + - 'embassy-stm32/**' + embassy-stm32-wpan: + - 'embassy-stm32-wpan/**' + embassy-sync: + - 'embassy-sync/**' + embassy-time: + - 'embassy-time/**' + embassy-time-driver: + - 'embassy-time-driver/**' + embassy-time-queue-utils: + - 'embassy-time-queue-utils/**' + embassy-usb: + - 'embassy-usb/**' + embassy-usb-dfu: + - 'embassy-usb-dfu/**' + embassy-usb-driver: + - 'embassy-usb-driver/**' + embassy-usb-logger: + - 'embassy-usb-logger/**' + embassy-usb-synopsys-otg: + - 'embassy-usb-synopsys-otg/**' + - name: Check that changelog updated (cyw43) + if: steps.changes.outputs.cyw43 == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: cyw43/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the cyw43/CHANGELOG.md file." + - name: Check that changelog updated (cyw43-pio) + if: steps.changes.outputs.cyw43-pio == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: cyw43-pio/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the cyw43-pio/CHANGELOG.md file." + - name: Check that changelog updated (embassy-boot) + if: steps.changes.outputs.embassy-boot == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-boot/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-boot/CHANGELOG.md file." + - name: Check that changelog updated (embassy-boot-nrf) + if: steps.changes.outputs.embassy-boot-nrf == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-boot-nrf/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-boot-nrf/CHANGELOG.md file." + - name: Check that changelog updated (embassy-boot-rp) + if: steps.changes.outputs.embassy-boot-rp == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-boot-rp/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-boot-rp/CHANGELOG.md file." + - name: Check that changelog updated (embassy-boot-stm32) + if: steps.changes.outputs.embassy-boot-stm32 == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-boot-stm32/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-boot-stm32/CHANGELOG.md file." + - name: Check that changelog updated (embassy-embedded-hal) + if: steps.changes.outputs.embassy-embedded-hal == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-embedded-hal/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-embedded-hal/CHANGELOG.md file." + - name: Check that changelog updated (embassy-executor) + if: steps.changes.outputs.embassy-executor == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-executor/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-executor/CHANGELOG.md file." + - name: Check that changelog updated (embassy-executor-macros) + if: steps.changes.outputs.embassy-executor-macros == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-executor-macros/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-executor-macros/CHANGELOG.md file." + - name: Check that changelog updated (embassy-futures) + if: steps.changes.outputs.embassy-futures == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-futures/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-futures/CHANGELOG.md file." + - name: Check that changelog updated (embassy-imxrt) + if: steps.changes.outputs.embassy-imxrt == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-imxrt/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-imxrt/CHANGELOG.md file." + - name: Check that changelog updated (embassy-mspm0) + if: steps.changes.outputs.embassy-mspm0 == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-mspm0/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-mspm0/CHANGELOG.md file." + - name: Check that changelog updated (embassy-net) + if: steps.changes.outputs.embassy-net == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-net/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-net/CHANGELOG.md file." + - name: Check that changelog updated (embassy-net-adin1110) + if: steps.changes.outputs.embassy-net-adin1110 == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-net-adin1110/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-net-adin1110/CHANGELOG.md file." + - name: Check that changelog updated (embassy-net-driver) + if: steps.changes.outputs.embassy-net-driver == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-net-driver/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-net-driver/CHANGELOG.md file." + - name: Check that changelog updated (embassy-net-driver-channel) + if: steps.changes.outputs.embassy-net-driver-channel == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-net-driver-channel/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-net-driver-channel/CHANGELOG.md file." + - name: Check that changelog updated (embassy-net-enc28j60) + if: steps.changes.outputs.embassy-net-enc28j60 == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-net-enc28j60/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-net-enc28j60/CHANGELOG.md file." + - name: Check that changelog updated (embassy-net-esp-hosted) + if: steps.changes.outputs.embassy-net-esp-hosted == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-net-esp-hosted/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-net-esp-hosted/CHANGELOG.md file." + - name: Check that changelog updated (embassy-net-nrf91) + if: steps.changes.outputs.embassy-net-nrf91 == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-net-nrf91/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-net-nrf91/CHANGELOG.md file." + - name: Check that changelog updated (embassy-net-ppp) + if: steps.changes.outputs.embassy-net-ppp == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-net-ppp/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-net-ppp/CHANGELOG.md file." + - name: Check that changelog updated (embassy-net-tuntap) + if: steps.changes.outputs.embassy-net-tuntap == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-net-tuntap/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-net-tuntap/CHANGELOG.md file." + - name: Check that changelog updated (embassy-net-wiznet) + if: steps.changes.outputs.embassy-net-wiznet == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-net-wiznet/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-net-wiznet/CHANGELOG.md file." + - name: Check that changelog updated (embassy-nrf) + if: steps.changes.outputs.embassy-nrf == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-nrf/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-nrf/CHANGELOG.md file." + - name: Check that changelog updated (embassy-nxp) + if: steps.changes.outputs.embassy-nxp == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-nxp/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-nxp/CHANGELOG.md file." + - name: Check that changelog updated (embassy-rp) + if: steps.changes.outputs.embassy-rp == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-rp/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-rp/CHANGELOG.md file." + - name: Check that changelog updated (embassy-stm32) + if: steps.changes.outputs.embassy-stm32 == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-stm32/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-stm32/CHANGELOG.md file." + - name: Check that changelog updated (embassy-stm32-wpan) + if: steps.changes.outputs.embassy-stm32-wpan == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-stm32-wpan/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-stm32-wpan/CHANGELOG.md file." + - name: Check that changelog updated (embassy-sync) + if: steps.changes.outputs.embassy-sync == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-sync/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-sync/CHANGELOG.md file." + - name: Check that changelog updated (embassy-time) + if: steps.changes.outputs.embassy-time == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-time/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-time/CHANGELOG.md file." + - name: Check that changelog updated (embassy-time-driver) + if: steps.changes.outputs.embassy-time-driver == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-time-driver/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-time-driver/CHANGELOG.md file." + - name: Check that changelog updated (embassy-time-queue-utils) + if: steps.changes.outputs.embassy-time-queue-utils == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-time-queue-utils/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-time-queue-utils/CHANGELOG.md file." + - name: Check that changelog updated (embassy-usb) + if: steps.changes.outputs.embassy-usb == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-usb/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-usb/CHANGELOG.md file." + - name: Check that changelog updated (embassy-usb-dfu) + if: steps.changes.outputs.embassy-usb-dfu == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-usb-dfu/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-usb-dfu/CHANGELOG.md file." + - name: Check that changelog updated (embassy-usb-driver) + if: steps.changes.outputs.embassy-usb-driver == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-usb-driver/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-usb-driver/CHANGELOG.md file." + - name: Check that changelog updated (embassy-usb-logger) + if: steps.changes.outputs.embassy-usb-logger == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-usb-logger/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-usb-logger/CHANGELOG.md file." + - name: Check that changelog updated (embassy-usb-synopsys-otg) + if: steps.changes.outputs.embassy-usb-synopsys-otg == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-usb-synopsys-otg/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-usb-synopsys-otg/CHANGELOG.md file." -- cgit From b96f44cfd41175dda9789bb27bf18c12340e225a Mon Sep 17 00:00:00 2001 From: Dániel Buga Date: Sat, 16 Aug 2025 12:11:38 +0200 Subject: Add changelog check --- .github/workflows/changelog.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.github') diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 94e8f353a..13e04d954 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -45,6 +45,8 @@ jobs: - 'embassy-executor/**' embassy-executor-macros: - 'embassy-executor-macros/**' + embassy-executor-timer-queue: + - 'embassy-executor-timer-queue/**' embassy-futures: - 'embassy-futures/**' embassy-imxrt: @@ -162,6 +164,13 @@ jobs: changeLogPath: embassy-executor-macros/CHANGELOG.md skipLabels: "skip-changelog" missingUpdateErrorMessage: "Please add a changelog entry in the embassy-executor-macros/CHANGELOG.md file." + - name: Check that changelog updated (embassy-executor-timer-queue) + if: steps.changes.outputs.embassy-executor-timer-queue == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: embassy-executor-timer-queue/CHANGELOG.md + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-executor-timer-queue/CHANGELOG.md file." - name: Check that changelog updated (embassy-futures) if: steps.changes.outputs.embassy-futures == 'true' uses: dangoslen/changelog-enforcer@v3 -- cgit From da9cdf0c536ec4fa7bdfb649750c44f70ef1cd55 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 9 Jul 2025 01:18:04 +0200 Subject: executor: add "task metadata" concept, make name a task metadata. --- .github/ci/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/ci/test.sh b/.github/ci/test.sh index c9b332cf8..33dfa48c9 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh @@ -12,7 +12,7 @@ export CARGO_TARGET_DIR=/ci/cache/target # used when pointing stm32-metapac to a CI-built one. export CARGO_NET_GIT_FETCH_WITH_CLI=true -cargo test --manifest-path ./embassy-executor/Cargo.toml +cargo test --manifest-path ./embassy-executor/Cargo.toml --features metadata-name cargo test --manifest-path ./embassy-futures/Cargo.toml cargo test --manifest-path ./embassy-sync/Cargo.toml cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml -- cgit From 629d224a7614989d79448a1cf17e345be79a0d4b Mon Sep 17 00:00:00 2001 From: Florian Grandel Date: Sat, 30 Aug 2025 18:00:49 +0200 Subject: fix(ci): executor macros changelog Changes to executor macros are expected in the executor changelog. There is now separate changelog for the macros crate. Signed-off-by: Florian Grandel --- .github/workflows/changelog.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 13e04d954..8ee143cad 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -161,9 +161,9 @@ jobs: if: steps.changes.outputs.embassy-executor-macros == 'true' uses: dangoslen/changelog-enforcer@v3 with: - changeLogPath: embassy-executor-macros/CHANGELOG.md + changeLogPath: embassy-executor/CHANGELOG.md skipLabels: "skip-changelog" - missingUpdateErrorMessage: "Please add a changelog entry in the embassy-executor-macros/CHANGELOG.md file." + missingUpdateErrorMessage: "Please add a changelog entry in the embassy-executor/CHANGELOG.md file." - name: Check that changelog updated (embassy-executor-timer-queue) if: steps.changes.outputs.embassy-executor-timer-queue == 'true' uses: dangoslen/changelog-enforcer@v3 -- cgit From 55b3c5c6e8fb5e55a0e507c43db5d9ef32114f64 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 11 Sep 2025 21:27:02 +0200 Subject: ci: use devtool to build. --- .github/ci/build-nightly.sh | 3 +++ .github/ci/build-xtensa.sh | 11 ++++------- .github/ci/build.sh | 3 +++ 3 files changed, 10 insertions(+), 7 deletions(-) (limited to '.github') diff --git a/.github/ci/build-nightly.sh b/.github/ci/build-nightly.sh index 95cb4100c..2d7c4db3f 100755 --- a/.github/ci/build-nightly.sh +++ b/.github/ci/build-nightly.sh @@ -7,6 +7,7 @@ set -euo pipefail export RUSTUP_HOME=/ci/cache/rustup export CARGO_HOME=/ci/cache/cargo export CARGO_TARGET_DIR=/ci/cache/target +export PATH=$CARGO_HOME/bin:$PATH mv rust-toolchain-nightly.toml rust-toolchain.toml # needed for "dumb HTTP" transport support @@ -22,6 +23,8 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe + ./ci-nightly.sh # Save lockfiles diff --git a/.github/ci/build-xtensa.sh b/.github/ci/build-xtensa.sh index 103575bc9..b6626639d 100755 --- a/.github/ci/build-xtensa.sh +++ b/.github/ci/build-xtensa.sh @@ -7,13 +7,14 @@ set -euo pipefail export RUSTUP_HOME=/ci/cache/rustup export CARGO_HOME=/ci/cache/cargo export CARGO_TARGET_DIR=/ci/cache/target +export PATH=$CARGO_HOME/bin:$PATH # needed for "dumb HTTP" transport support # used when pointing stm32-metapac to a CI-built one. export CARGO_NET_GIT_FETCH_WITH_CLI=true -cargo install espup -/ci/cache/cargo/bin/espup install --toolchain-version 1.84.0.0 +cargo install espup --locked +espup install --toolchain-version 1.88.0.0 # Restore lockfiles if [ -f /ci/cache/lockfiles.tar ]; then @@ -24,11 +25,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -mkdir .cargo -cat > .cargo/config.toml<< EOF -[unstable] -build-std = ["alloc", "core"] -EOF +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe ./ci-xtensa.sh diff --git a/.github/ci/build.sh b/.github/ci/build.sh index 68a7c0c34..59bcefed6 100755 --- a/.github/ci/build.sh +++ b/.github/ci/build.sh @@ -7,6 +7,7 @@ set -euo pipefail export RUSTUP_HOME=/ci/cache/rustup export CARGO_HOME=/ci/cache/cargo export CARGO_TARGET_DIR=/ci/cache/target +export PATH=$CARGO_HOME/bin:$PATH if [ -f /ci/secrets/teleprobe-token.txt ]; then echo Got teleprobe token! export TELEPROBE_HOST=https://teleprobe.embassy.dev @@ -27,6 +28,8 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe + ./ci.sh # Save lockfiles -- cgit From 83209b812c5bc5b5db3ee1624b1eff27c6a45cf6 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 15 Sep 2025 14:03:12 +0200 Subject: Use new docserver bin to build docs. --- .github/ci/doc.sh | 68 +++++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to '.github') diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index ac96008d8..7d6544e73 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh @@ -19,42 +19,42 @@ mv rust-toolchain-nightly.toml rust-toolchain.toml # which makes rustup very sad rustc --version > /dev/null -docserver-builder -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup -docserver-builder -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup -docserver-builder -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup -docserver-builder -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup -docserver-builder -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup -docserver-builder -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup -docserver-builder -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup -docserver-builder -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup -docserver-builder -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup -docserver-builder -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup -docserver-builder -i ./embassy-nxp -o webroot/crates/embassy-nxp/git.zup -docserver-builder -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup -docserver-builder -i ./cyw43 -o webroot/crates/cyw43/git.zup -docserver-builder -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup -docserver-builder -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static +docserver build -c -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup +docserver build -c -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup +docserver build -c -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup +docserver build -c -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup +docserver build -c -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup +docserver build -c -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup +docserver build -c -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup +docserver build -c -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup +docserver build -c -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup +docserver build -c -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup +docserver build -c -i ./embassy-nxp -o webroot/crates/embassy-nxp/git.zup +docserver build -c -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup +docserver build -c -i ./cyw43 -o webroot/crates/cyw43/git.zup +docserver build -c -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup +docserver build -c -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static -docserver-builder -i ./embassy-time -o webroot/crates/embassy-time/git.zup -docserver-builder -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup -docserver-builder -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup +docserver build -c -i ./embassy-time -o webroot/crates/embassy-time/git.zup +docserver build -c -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup +docserver build -c -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup -docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup -docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup -docserver-builder -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup -docserver-builder -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup -docserver-builder -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup +docserver build -c -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup +docserver build -c -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup +docserver build -c -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup +docserver build -c -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup +docserver build -c -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup -docserver-builder -i ./embassy-net -o webroot/crates/embassy-net/git.zup -docserver-builder -i ./embassy-net-nrf91 -o webroot/crates/embassy-net-nrf91/git.zup -docserver-builder -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup -docserver-builder -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup -docserver-builder -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup -docserver-builder -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup -docserver-builder -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup -docserver-builder -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup -docserver-builder -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup -docserver-builder -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup +docserver build -c -i ./embassy-net -o webroot/crates/embassy-net/git.zup +docserver build -c -i ./embassy-net-nrf91 -o webroot/crates/embassy-net-nrf91/git.zup +docserver build -c -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup +docserver build -c -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup +docserver build -c -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup +docserver build -c -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup +docserver build -c -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup +docserver build -c -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup +docserver build -c -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup +docserver build -c -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup export KUBECONFIG=/ci/secrets/kubeconfig.yml POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) @@ -65,6 +65,6 @@ kubectl cp webroot/static $POD:/data # so that it doesn't prevent other crates from getting docs updates when it breaks. rm -rf webroot -docserver-builder -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup +docserver build -c -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) kubectl cp webroot/crates $POD:/data -- cgit From 017064138003fa38b52f11dba872a43d4fec8b61 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 16 Sep 2025 16:01:41 +0200 Subject: ci: docserver -c flag doesn't exist anymore --- .github/ci/doc.sh | 68 +++++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to '.github') diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 7d6544e73..876c261a1 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh @@ -19,42 +19,42 @@ mv rust-toolchain-nightly.toml rust-toolchain.toml # which makes rustup very sad rustc --version > /dev/null -docserver build -c -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup -docserver build -c -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup -docserver build -c -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup -docserver build -c -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup -docserver build -c -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup -docserver build -c -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup -docserver build -c -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup -docserver build -c -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup -docserver build -c -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup -docserver build -c -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup -docserver build -c -i ./embassy-nxp -o webroot/crates/embassy-nxp/git.zup -docserver build -c -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup -docserver build -c -i ./cyw43 -o webroot/crates/cyw43/git.zup -docserver build -c -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup -docserver build -c -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static +docserver build -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup +docserver build -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup +docserver build -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup +docserver build -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup +docserver build -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup +docserver build -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup +docserver build -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup +docserver build -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup +docserver build -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup +docserver build -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup +docserver build -i ./embassy-nxp -o webroot/crates/embassy-nxp/git.zup +docserver build -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup +docserver build -i ./cyw43 -o webroot/crates/cyw43/git.zup +docserver build -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup +docserver build -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static -docserver build -c -i ./embassy-time -o webroot/crates/embassy-time/git.zup -docserver build -c -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup -docserver build -c -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup +docserver build -i ./embassy-time -o webroot/crates/embassy-time/git.zup +docserver build -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup +docserver build -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup -docserver build -c -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup -docserver build -c -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup -docserver build -c -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup -docserver build -c -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup -docserver build -c -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup +docserver build -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup +docserver build -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup +docserver build -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup +docserver build -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup +docserver build -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup -docserver build -c -i ./embassy-net -o webroot/crates/embassy-net/git.zup -docserver build -c -i ./embassy-net-nrf91 -o webroot/crates/embassy-net-nrf91/git.zup -docserver build -c -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup -docserver build -c -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup -docserver build -c -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup -docserver build -c -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup -docserver build -c -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup -docserver build -c -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup -docserver build -c -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup -docserver build -c -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup +docserver build -i ./embassy-net -o webroot/crates/embassy-net/git.zup +docserver build -i ./embassy-net-nrf91 -o webroot/crates/embassy-net-nrf91/git.zup +docserver build -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup +docserver build -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup +docserver build -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup +docserver build -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup +docserver build -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup +docserver build -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup +docserver build -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup +docserver build -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup export KUBECONFIG=/ci/secrets/kubeconfig.yml POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) @@ -65,6 +65,6 @@ kubectl cp webroot/static $POD:/data # so that it doesn't prevent other crates from getting docs updates when it breaks. rm -rf webroot -docserver build -c -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup +docserver build -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) kubectl cp webroot/crates $POD:/data -- cgit From fd1c1635419f8281edda3892f08a91f0e315667a Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 22 Sep 2025 00:32:50 +0200 Subject: ci: add cargo manifest check --- .github/ci/build-nightly.sh | 2 +- .github/ci/build-xtensa.sh | 2 +- .github/ci/build.sh | 2 +- .github/ci/crlf.sh | 17 ----------------- .github/ci/janitor.sh | 15 +++++++++++++++ 5 files changed, 18 insertions(+), 20 deletions(-) delete mode 100755 .github/ci/crlf.sh create mode 100755 .github/ci/janitor.sh (limited to '.github') diff --git a/.github/ci/build-nightly.sh b/.github/ci/build-nightly.sh index 2d7c4db3f..801d470a1 100755 --- a/.github/ci/build-nightly.sh +++ b/.github/ci/build-nightly.sh @@ -23,7 +23,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 2357881abb81a0a3672ff992e199963f9f63bb10 ./ci-nightly.sh diff --git a/.github/ci/build-xtensa.sh b/.github/ci/build-xtensa.sh index b6626639d..1a97b21b1 100755 --- a/.github/ci/build-xtensa.sh +++ b/.github/ci/build-xtensa.sh @@ -25,7 +25,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 2357881abb81a0a3672ff992e199963f9f63bb10 ./ci-xtensa.sh diff --git a/.github/ci/build.sh b/.github/ci/build.sh index 59bcefed6..72ffa9f1b 100755 --- a/.github/ci/build.sh +++ b/.github/ci/build.sh @@ -28,7 +28,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 2357881abb81a0a3672ff992e199963f9f63bb10 ./ci.sh diff --git a/.github/ci/crlf.sh b/.github/ci/crlf.sh deleted file mode 100755 index 69838ce88..000000000 --- a/.github/ci/crlf.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -## on push branch~=gh-readonly-queue/main/.* -## on pull_request - -set -euo pipefail - -FILES_WITH_CRLF=$(find ! -path "./.git/*" -not -type d | xargs file -N | (grep " CRLF " || true)) - -if [ -z "$FILES_WITH_CRLF" ]; then - echo -e "No files with CRLF endings found." - exit 0 -else - NR_FILES=$(echo "$FILES_WITH_CRLF" | wc -l) - echo -e "ERROR: Found ${NR_FILES} files with CRLF endings." - echo "$FILES_WITH_CRLF" - exit "$NR_FILES" -fi diff --git a/.github/ci/janitor.sh b/.github/ci/janitor.sh new file mode 100755 index 000000000..58ecb8475 --- /dev/null +++ b/.github/ci/janitor.sh @@ -0,0 +1,15 @@ +#!/bin/bash +## on push branch~=gh-readonly-queue/main/.* +## on pull_request + +set -euo pipefail + +export RUSTUP_HOME=/ci/cache/rustup +export CARGO_HOME=/ci/cache/cargo +export CARGO_TARGET_DIR=/ci/cache/target +export PATH=$CARGO_HOME/bin:$PATH + +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 2357881abb81a0a3672ff992e199963f9f63bb10 + +cargo embassy-devtool check-crlf +cargo embassy-devtool check-manifest -- cgit From 27df9288f343c2855d1daec00d127541826d664f Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 22 Sep 2025 00:56:14 +0200 Subject: aaaaaa --- .github/ci/build-nightly.sh | 2 +- .github/ci/build-xtensa.sh | 2 +- .github/ci/build.sh | 2 +- .github/ci/janitor.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/ci/build-nightly.sh b/.github/ci/build-nightly.sh index 801d470a1..257d7ebd3 100755 --- a/.github/ci/build-nightly.sh +++ b/.github/ci/build-nightly.sh @@ -23,7 +23,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 2357881abb81a0a3672ff992e199963f9f63bb10 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 3ca80f7065acbe0b69b7da463fab60e744f9de79 ./ci-nightly.sh diff --git a/.github/ci/build-xtensa.sh b/.github/ci/build-xtensa.sh index 1a97b21b1..339e28467 100755 --- a/.github/ci/build-xtensa.sh +++ b/.github/ci/build-xtensa.sh @@ -25,7 +25,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 2357881abb81a0a3672ff992e199963f9f63bb10 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 3ca80f7065acbe0b69b7da463fab60e744f9de79 ./ci-xtensa.sh diff --git a/.github/ci/build.sh b/.github/ci/build.sh index 72ffa9f1b..d7201aedb 100755 --- a/.github/ci/build.sh +++ b/.github/ci/build.sh @@ -28,7 +28,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 2357881abb81a0a3672ff992e199963f9f63bb10 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 3ca80f7065acbe0b69b7da463fab60e744f9de79 ./ci.sh diff --git a/.github/ci/janitor.sh b/.github/ci/janitor.sh index 58ecb8475..bd04f47fc 100755 --- a/.github/ci/janitor.sh +++ b/.github/ci/janitor.sh @@ -9,7 +9,7 @@ export CARGO_HOME=/ci/cache/cargo export CARGO_TARGET_DIR=/ci/cache/target export PATH=$CARGO_HOME/bin:$PATH -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 2357881abb81a0a3672ff992e199963f9f63bb10 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 3ca80f7065acbe0b69b7da463fab60e744f9de79 cargo embassy-devtool check-crlf cargo embassy-devtool check-manifest -- cgit From 54a95927f054dd7229fd5e26c3acee509f71c82f Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 22 Sep 2025 00:56:34 +0200 Subject: ci: use devtool to build docs. --- .github/ci/doc.sh | 54 +++--------------------------------------------------- 1 file changed, 3 insertions(+), 51 deletions(-) (limited to '.github') diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 876c261a1..70ce110d1 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh @@ -9,62 +9,14 @@ set -euxo pipefail export RUSTUP_HOME=/ci/cache/rustup export CARGO_HOME=/ci/cache/cargo export CARGO_TARGET_DIR=/ci/cache/target -export BUILDER_THREADS=4 -export BUILDER_COMPRESS=true +export PATH=$CARGO_HOME/bin:$PATH mv rust-toolchain-nightly.toml rust-toolchain.toml -# force rustup to download the toolchain before starting building. -# Otherwise, the docs builder is running multiple instances of cargo rustdoc concurrently. -# They all see the toolchain is not installed and try to install it in parallel -# which makes rustup very sad -rustc --version > /dev/null +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 3ca80f7065acbe0b69b7da463fab60e744f9de79 -docserver build -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup -docserver build -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup -docserver build -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup -docserver build -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup -docserver build -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup -docserver build -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup -docserver build -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup -docserver build -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup -docserver build -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup -docserver build -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup -docserver build -i ./embassy-nxp -o webroot/crates/embassy-nxp/git.zup -docserver build -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup -docserver build -i ./cyw43 -o webroot/crates/cyw43/git.zup -docserver build -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup -docserver build -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static - -docserver build -i ./embassy-time -o webroot/crates/embassy-time/git.zup -docserver build -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup -docserver build -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup - -docserver build -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup -docserver build -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup -docserver build -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup -docserver build -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup -docserver build -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup - -docserver build -i ./embassy-net -o webroot/crates/embassy-net/git.zup -docserver build -i ./embassy-net-nrf91 -o webroot/crates/embassy-net-nrf91/git.zup -docserver build -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup -docserver build -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup -docserver build -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup -docserver build -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup -docserver build -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup -docserver build -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup -docserver build -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup -docserver build -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup +cargo embassy-devtool doc -o webroot export KUBECONFIG=/ci/secrets/kubeconfig.yml POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) kubectl cp webroot/crates $POD:/data kubectl cp webroot/static $POD:/data - -# build and upload stm32 last -# so that it doesn't prevent other crates from getting docs updates when it breaks. - -rm -rf webroot -docserver build -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup -POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) -kubectl cp webroot/crates $POD:/data -- cgit From 34911c581c1066a9650ac2103d125d5bbb9a229c Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 26 Sep 2025 21:49:40 +0200 Subject: Fix docs build. --- .github/ci/build-nightly.sh | 2 +- .github/ci/build-xtensa.sh | 2 +- .github/ci/build.sh | 2 +- .github/ci/doc.sh | 2 +- .github/ci/janitor.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to '.github') diff --git a/.github/ci/build-nightly.sh b/.github/ci/build-nightly.sh index 257d7ebd3..8cca1b445 100755 --- a/.github/ci/build-nightly.sh +++ b/.github/ci/build-nightly.sh @@ -23,7 +23,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 3ca80f7065acbe0b69b7da463fab60e744f9de79 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 676e6d602bf016dc71f1e98f2c7f191d7bd20707 ./ci-nightly.sh diff --git a/.github/ci/build-xtensa.sh b/.github/ci/build-xtensa.sh index 339e28467..dbd2f7ffc 100755 --- a/.github/ci/build-xtensa.sh +++ b/.github/ci/build-xtensa.sh @@ -25,7 +25,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 3ca80f7065acbe0b69b7da463fab60e744f9de79 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 676e6d602bf016dc71f1e98f2c7f191d7bd20707 ./ci-xtensa.sh diff --git a/.github/ci/build.sh b/.github/ci/build.sh index d7201aedb..d5e0e0bd2 100755 --- a/.github/ci/build.sh +++ b/.github/ci/build.sh @@ -28,7 +28,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 3ca80f7065acbe0b69b7da463fab60e744f9de79 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 676e6d602bf016dc71f1e98f2c7f191d7bd20707 ./ci.sh diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 70ce110d1..dab47e86d 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh @@ -12,7 +12,7 @@ export CARGO_TARGET_DIR=/ci/cache/target export PATH=$CARGO_HOME/bin:$PATH mv rust-toolchain-nightly.toml rust-toolchain.toml -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 3ca80f7065acbe0b69b7da463fab60e744f9de79 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 676e6d602bf016dc71f1e98f2c7f191d7bd20707 cargo embassy-devtool doc -o webroot diff --git a/.github/ci/janitor.sh b/.github/ci/janitor.sh index bd04f47fc..305c6b227 100755 --- a/.github/ci/janitor.sh +++ b/.github/ci/janitor.sh @@ -9,7 +9,7 @@ export CARGO_HOME=/ci/cache/cargo export CARGO_TARGET_DIR=/ci/cache/target export PATH=$CARGO_HOME/bin:$PATH -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 3ca80f7065acbe0b69b7da463fab60e744f9de79 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 676e6d602bf016dc71f1e98f2c7f191d7bd20707 cargo embassy-devtool check-crlf cargo embassy-devtool check-manifest -- cgit From abc8e450f936567ad42cb34b5d2a7941b206aa5d Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 6 Oct 2025 22:55:38 +0200 Subject: Edition 2024. --- .github/ci/build-nightly.sh | 2 +- .github/ci/build-xtensa.sh | 2 +- .github/ci/build.sh | 2 +- .github/ci/doc.sh | 2 +- .github/ci/janitor.sh | 2 +- .github/ci/rustfmt.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to '.github') diff --git a/.github/ci/build-nightly.sh b/.github/ci/build-nightly.sh index 8cca1b445..82e9436f3 100755 --- a/.github/ci/build-nightly.sh +++ b/.github/ci/build-nightly.sh @@ -23,7 +23,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 676e6d602bf016dc71f1e98f2c7f191d7bd20707 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev d015fd5e972a3e550ebef0da6748099b88a93ba6 ./ci-nightly.sh diff --git a/.github/ci/build-xtensa.sh b/.github/ci/build-xtensa.sh index dbd2f7ffc..3f74b4a5a 100755 --- a/.github/ci/build-xtensa.sh +++ b/.github/ci/build-xtensa.sh @@ -25,7 +25,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 676e6d602bf016dc71f1e98f2c7f191d7bd20707 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev d015fd5e972a3e550ebef0da6748099b88a93ba6 ./ci-xtensa.sh diff --git a/.github/ci/build.sh b/.github/ci/build.sh index d5e0e0bd2..3c196f72b 100755 --- a/.github/ci/build.sh +++ b/.github/ci/build.sh @@ -28,7 +28,7 @@ fi hashtime restore /ci/cache/filetime.json || true hashtime save /ci/cache/filetime.json -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 676e6d602bf016dc71f1e98f2c7f191d7bd20707 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev d015fd5e972a3e550ebef0da6748099b88a93ba6 ./ci.sh diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index dab47e86d..535fc5262 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh @@ -12,7 +12,7 @@ export CARGO_TARGET_DIR=/ci/cache/target export PATH=$CARGO_HOME/bin:$PATH mv rust-toolchain-nightly.toml rust-toolchain.toml -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 676e6d602bf016dc71f1e98f2c7f191d7bd20707 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev d015fd5e972a3e550ebef0da6748099b88a93ba6 cargo embassy-devtool doc -o webroot diff --git a/.github/ci/janitor.sh b/.github/ci/janitor.sh index 305c6b227..bc43075bd 100755 --- a/.github/ci/janitor.sh +++ b/.github/ci/janitor.sh @@ -9,7 +9,7 @@ export CARGO_HOME=/ci/cache/cargo export CARGO_TARGET_DIR=/ci/cache/target export PATH=$CARGO_HOME/bin:$PATH -cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 676e6d602bf016dc71f1e98f2c7f191d7bd20707 +cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev d015fd5e972a3e550ebef0da6748099b88a93ba6 cargo embassy-devtool check-crlf cargo embassy-devtool check-manifest diff --git a/.github/ci/rustfmt.sh b/.github/ci/rustfmt.sh index 369239cfe..7aaf93234 100755 --- a/.github/ci/rustfmt.sh +++ b/.github/ci/rustfmt.sh @@ -9,4 +9,4 @@ export CARGO_HOME=/ci/cache/cargo export CARGO_TARGET_DIR=/ci/cache/target mv rust-toolchain-nightly.toml rust-toolchain.toml -find . -name '*.rs' -not -path '*target*' | xargs rustfmt --check --skip-children --unstable-features --edition 2021 +find . -name '*.rs' -not -path '*target*' | xargs rustfmt --check --skip-children --unstable-features --edition 2024 -- cgit