diff options
Diffstat (limited to '.github/ci')
| -rwxr-xr-x | .github/ci/book.sh | 3 | ||||
| -rwxr-xr-x | .github/ci/build-nightly.sh | 3 | ||||
| -rwxr-xr-x | .github/ci/build-xtensa.sh | 11 | ||||
| -rwxr-xr-x | .github/ci/build.sh | 3 | ||||
| -rwxr-xr-x | .github/ci/doc.sh | 69 | ||||
| -rwxr-xr-x | .github/ci/test.sh | 2 |
6 files changed, 51 insertions, 40 deletions
diff --git a/.github/ci/book.sh b/.github/ci/book.sh index 285cdc8fa..6c300bf09 100755 --- a/.github/ci/book.sh +++ b/.github/ci/book.sh | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | ## on push branch=main | 2 | ## on push branch=main |
| 3 | ## priority -100 | ||
| 4 | ## dedup dequeue | ||
| 5 | ## cooldown 15m | ||
| 3 | 6 | ||
| 4 | set -euxo pipefail | 7 | set -euxo pipefail |
| 5 | 8 | ||
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 | |||
| 7 | export RUSTUP_HOME=/ci/cache/rustup | 7 | 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 | export PATH=$CARGO_HOME/bin:$PATH | ||
| 10 | mv rust-toolchain-nightly.toml rust-toolchain.toml | 11 | mv rust-toolchain-nightly.toml rust-toolchain.toml |
| 11 | 12 | ||
| 12 | # needed for "dumb HTTP" transport support | 13 | # needed for "dumb HTTP" transport support |
| @@ -22,6 +23,8 @@ fi | |||
| 22 | hashtime restore /ci/cache/filetime.json || true | 23 | hashtime restore /ci/cache/filetime.json || true |
| 23 | hashtime save /ci/cache/filetime.json | 24 | hashtime save /ci/cache/filetime.json |
| 24 | 25 | ||
| 26 | cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe | ||
| 27 | |||
| 25 | ./ci-nightly.sh | 28 | ./ci-nightly.sh |
| 26 | 29 | ||
| 27 | # Save lockfiles | 30 | # 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 | |||
| 7 | export RUSTUP_HOME=/ci/cache/rustup | 7 | 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 | export PATH=$CARGO_HOME/bin:$PATH | ||
| 10 | 11 | ||
| 11 | # needed for "dumb HTTP" transport support | 12 | # needed for "dumb HTTP" transport support |
| 12 | # used when pointing stm32-metapac to a CI-built one. | 13 | # used when pointing stm32-metapac to a CI-built one. |
| 13 | export CARGO_NET_GIT_FETCH_WITH_CLI=true | 14 | export CARGO_NET_GIT_FETCH_WITH_CLI=true |
| 14 | 15 | ||
| 15 | cargo install espup | 16 | cargo install espup --locked |
| 16 | /ci/cache/cargo/bin/espup install --toolchain-version 1.84.0.0 | 17 | espup install --toolchain-version 1.88.0.0 |
| 17 | 18 | ||
| 18 | # Restore lockfiles | 19 | # Restore lockfiles |
| 19 | if [ -f /ci/cache/lockfiles.tar ]; then | 20 | if [ -f /ci/cache/lockfiles.tar ]; then |
| @@ -24,11 +25,7 @@ fi | |||
| 24 | hashtime restore /ci/cache/filetime.json || true | 25 | hashtime restore /ci/cache/filetime.json || true |
| 25 | hashtime save /ci/cache/filetime.json | 26 | hashtime save /ci/cache/filetime.json |
| 26 | 27 | ||
| 27 | mkdir .cargo | 28 | cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe |
| 28 | cat > .cargo/config.toml<< EOF | ||
| 29 | [unstable] | ||
| 30 | build-std = ["alloc", "core"] | ||
| 31 | EOF | ||
| 32 | 29 | ||
| 33 | ./ci-xtensa.sh | 30 | ./ci-xtensa.sh |
| 34 | 31 | ||
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 | |||
| 7 | export RUSTUP_HOME=/ci/cache/rustup | 7 | 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 | export PATH=$CARGO_HOME/bin:$PATH | ||
| 10 | if [ -f /ci/secrets/teleprobe-token.txt ]; then | 11 | if [ -f /ci/secrets/teleprobe-token.txt ]; then |
| 11 | echo Got teleprobe token! | 12 | echo Got teleprobe token! |
| 12 | export TELEPROBE_HOST=https://teleprobe.embassy.dev | 13 | export TELEPROBE_HOST=https://teleprobe.embassy.dev |
| @@ -27,6 +28,8 @@ fi | |||
| 27 | hashtime restore /ci/cache/filetime.json || true | 28 | hashtime restore /ci/cache/filetime.json || true |
| 28 | hashtime save /ci/cache/filetime.json | 29 | hashtime save /ci/cache/filetime.json |
| 29 | 30 | ||
| 31 | cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe | ||
| 32 | |||
| 30 | ./ci.sh | 33 | ./ci.sh |
| 31 | 34 | ||
| 32 | # Save lockfiles | 35 | # Save lockfiles |
diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 58ffe5f2e..7d6544e73 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | ## on push branch=main | 2 | ## on push branch=main |
| 3 | ## priority -100 | ||
| 4 | ## dedup dequeue | ||
| 5 | ## cooldown 15m | ||
| 3 | 6 | ||
| 4 | set -euxo pipefail | 7 | set -euxo pipefail |
| 5 | 8 | ||
| @@ -16,40 +19,42 @@ mv rust-toolchain-nightly.toml rust-toolchain.toml | |||
| 16 | # which makes rustup very sad | 19 | # which makes rustup very sad |
| 17 | rustc --version > /dev/null | 20 | rustc --version > /dev/null |
| 18 | 21 | ||
| 19 | docserver-builder -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup | 22 | docserver build -c -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup |
| 20 | docserver-builder -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup | 23 | docserver build -c -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup |
| 21 | docserver-builder -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup | 24 | docserver build -c -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup |
| 22 | docserver-builder -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup | 25 | docserver build -c -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup |
| 23 | docserver-builder -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup | 26 | docserver build -c -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup |
| 24 | docserver-builder -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup | 27 | docserver build -c -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup |
| 25 | docserver-builder -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup | 28 | docserver build -c -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup |
| 26 | docserver-builder -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup | 29 | docserver build -c -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup |
| 27 | docserver-builder -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup | 30 | docserver build -c -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup |
| 28 | docserver-builder -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup | 31 | docserver build -c -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup |
| 29 | docserver-builder -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup | 32 | docserver build -c -i ./embassy-nxp -o webroot/crates/embassy-nxp/git.zup |
| 30 | docserver-builder -i ./cyw43 -o webroot/crates/cyw43/git.zup | 33 | docserver build -c -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup |
| 31 | docserver-builder -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup | 34 | docserver build -c -i ./cyw43 -o webroot/crates/cyw43/git.zup |
| 32 | docserver-builder -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static | 35 | docserver build -c -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup |
| 36 | docserver build -c -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static | ||
| 33 | 37 | ||
| 34 | docserver-builder -i ./embassy-time -o webroot/crates/embassy-time/git.zup | 38 | docserver build -c -i ./embassy-time -o webroot/crates/embassy-time/git.zup |
| 35 | docserver-builder -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup | 39 | docserver build -c -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup |
| 36 | docserver-builder -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup | 40 | docserver build -c -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup |
| 37 | 41 | ||
| 38 | docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup | 42 | docserver build -c -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup |
| 39 | docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup | 43 | docserver build -c -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup |
| 40 | docserver-builder -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup | 44 | docserver build -c -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup |
| 41 | docserver-builder -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup | 45 | docserver build -c -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup |
| 42 | docserver-builder -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup | 46 | docserver build -c -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup |
| 43 | 47 | ||
| 44 | docserver-builder -i ./embassy-net -o webroot/crates/embassy-net/git.zup | 48 | docserver build -c -i ./embassy-net -o webroot/crates/embassy-net/git.zup |
| 45 | docserver-builder -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup | 49 | docserver build -c -i ./embassy-net-nrf91 -o webroot/crates/embassy-net-nrf91/git.zup |
| 46 | docserver-builder -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup | 50 | docserver build -c -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup |
| 47 | docserver-builder -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup | 51 | docserver build -c -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup |
| 48 | docserver-builder -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup | 52 | docserver build -c -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup |
| 49 | docserver-builder -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup | 53 | docserver build -c -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup |
| 50 | docserver-builder -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup | 54 | docserver build -c -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup |
| 51 | docserver-builder -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup | 55 | docserver build -c -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup |
| 52 | docserver-builder -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup | 56 | docserver build -c -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup |
| 57 | docserver build -c -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup | ||
| 53 | 58 | ||
| 54 | export KUBECONFIG=/ci/secrets/kubeconfig.yml | 59 | export KUBECONFIG=/ci/secrets/kubeconfig.yml |
| 55 | POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) | 60 | POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) |
| @@ -60,6 +65,6 @@ kubectl cp webroot/static $POD:/data | |||
| 60 | # so that it doesn't prevent other crates from getting docs updates when it breaks. | 65 | # so that it doesn't prevent other crates from getting docs updates when it breaks. |
| 61 | 66 | ||
| 62 | rm -rf webroot | 67 | rm -rf webroot |
| 63 | docserver-builder -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup | 68 | docserver build -c -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup |
| 64 | POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) | 69 | POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) |
| 65 | kubectl cp webroot/crates $POD:/data | 70 | kubectl cp webroot/crates $POD:/data |
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 | |||
| 12 | # used when pointing stm32-metapac to a CI-built one. | 12 | # used when pointing stm32-metapac to a CI-built one. |
| 13 | export CARGO_NET_GIT_FETCH_WITH_CLI=true | 13 | export CARGO_NET_GIT_FETCH_WITH_CLI=true |
| 14 | 14 | ||
| 15 | cargo test --manifest-path ./embassy-executor/Cargo.toml | 15 | cargo test --manifest-path ./embassy-executor/Cargo.toml --features metadata-name |
| 16 | cargo test --manifest-path ./embassy-futures/Cargo.toml | 16 | cargo test --manifest-path ./embassy-futures/Cargo.toml |
| 17 | cargo test --manifest-path ./embassy-sync/Cargo.toml | 17 | cargo test --manifest-path ./embassy-sync/Cargo.toml |
| 18 | cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml | 18 | cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml |
