aboutsummaryrefslogtreecommitdiff
path: root/.github/ci
diff options
context:
space:
mode:
Diffstat (limited to '.github/ci')
-rwxr-xr-x.github/ci/book.sh3
-rwxr-xr-x.github/ci/build-nightly.sh3
-rwxr-xr-x.github/ci/build-xtensa.sh11
-rwxr-xr-x.github/ci/build.sh3
-rwxr-xr-x.github/ci/doc.sh69
-rwxr-xr-x.github/ci/test.sh2
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
4set -euxo pipefail 7set -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
7export RUSTUP_HOME=/ci/cache/rustup 7export RUSTUP_HOME=/ci/cache/rustup
8export CARGO_HOME=/ci/cache/cargo 8export CARGO_HOME=/ci/cache/cargo
9export CARGO_TARGET_DIR=/ci/cache/target 9export CARGO_TARGET_DIR=/ci/cache/target
10export PATH=$CARGO_HOME/bin:$PATH
10mv rust-toolchain-nightly.toml rust-toolchain.toml 11mv 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
22hashtime restore /ci/cache/filetime.json || true 23hashtime restore /ci/cache/filetime.json || true
23hashtime save /ci/cache/filetime.json 24hashtime save /ci/cache/filetime.json
24 25
26cargo 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
7export RUSTUP_HOME=/ci/cache/rustup 7export RUSTUP_HOME=/ci/cache/rustup
8export CARGO_HOME=/ci/cache/cargo 8export CARGO_HOME=/ci/cache/cargo
9export CARGO_TARGET_DIR=/ci/cache/target 9export CARGO_TARGET_DIR=/ci/cache/target
10export 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.
13export CARGO_NET_GIT_FETCH_WITH_CLI=true 14export CARGO_NET_GIT_FETCH_WITH_CLI=true
14 15
15cargo install espup 16cargo install espup --locked
16/ci/cache/cargo/bin/espup install --toolchain-version 1.84.0.0 17espup install --toolchain-version 1.88.0.0
17 18
18# Restore lockfiles 19# Restore lockfiles
19if [ -f /ci/cache/lockfiles.tar ]; then 20if [ -f /ci/cache/lockfiles.tar ]; then
@@ -24,11 +25,7 @@ fi
24hashtime restore /ci/cache/filetime.json || true 25hashtime restore /ci/cache/filetime.json || true
25hashtime save /ci/cache/filetime.json 26hashtime save /ci/cache/filetime.json
26 27
27mkdir .cargo 28cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe
28cat > .cargo/config.toml<< EOF
29[unstable]
30build-std = ["alloc", "core"]
31EOF
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
7export RUSTUP_HOME=/ci/cache/rustup 7export RUSTUP_HOME=/ci/cache/rustup
8export CARGO_HOME=/ci/cache/cargo 8export CARGO_HOME=/ci/cache/cargo
9export CARGO_TARGET_DIR=/ci/cache/target 9export CARGO_TARGET_DIR=/ci/cache/target
10export PATH=$CARGO_HOME/bin:$PATH
10if [ -f /ci/secrets/teleprobe-token.txt ]; then 11if [ -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
27hashtime restore /ci/cache/filetime.json || true 28hashtime restore /ci/cache/filetime.json || true
28hashtime save /ci/cache/filetime.json 29hashtime save /ci/cache/filetime.json
29 30
31cargo 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
4set -euxo pipefail 7set -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
17rustc --version > /dev/null 20rustc --version > /dev/null
18 21
19docserver-builder -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup 22docserver build -c -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup
20docserver-builder -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup 23docserver build -c -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup
21docserver-builder -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup 24docserver build -c -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup
22docserver-builder -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup 25docserver build -c -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup
23docserver-builder -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup 26docserver build -c -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup
24docserver-builder -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup 27docserver build -c -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup
25docserver-builder -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup 28docserver build -c -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup
26docserver-builder -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup 29docserver build -c -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup
27docserver-builder -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup 30docserver build -c -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup
28docserver-builder -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup 31docserver build -c -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup
29docserver-builder -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup 32docserver build -c -i ./embassy-nxp -o webroot/crates/embassy-nxp/git.zup
30docserver-builder -i ./cyw43 -o webroot/crates/cyw43/git.zup 33docserver build -c -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup
31docserver-builder -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup 34docserver build -c -i ./cyw43 -o webroot/crates/cyw43/git.zup
32docserver-builder -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static 35docserver build -c -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup
36docserver build -c -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static
33 37
34docserver-builder -i ./embassy-time -o webroot/crates/embassy-time/git.zup 38docserver build -c -i ./embassy-time -o webroot/crates/embassy-time/git.zup
35docserver-builder -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup 39docserver build -c -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup
36docserver-builder -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup 40docserver build -c -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup
37 41
38docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup 42docserver build -c -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup
39docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup 43docserver build -c -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup
40docserver-builder -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup 44docserver build -c -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup
41docserver-builder -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup 45docserver build -c -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup
42docserver-builder -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup 46docserver build -c -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup
43 47
44docserver-builder -i ./embassy-net -o webroot/crates/embassy-net/git.zup 48docserver build -c -i ./embassy-net -o webroot/crates/embassy-net/git.zup
45docserver-builder -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup 49docserver build -c -i ./embassy-net-nrf91 -o webroot/crates/embassy-net-nrf91/git.zup
46docserver-builder -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup 50docserver build -c -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup
47docserver-builder -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup 51docserver build -c -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup
48docserver-builder -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup 52docserver build -c -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup
49docserver-builder -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup 53docserver build -c -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup
50docserver-builder -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup 54docserver build -c -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup
51docserver-builder -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup 55docserver build -c -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup
52docserver-builder -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup 56docserver build -c -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup
57docserver build -c -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup
53 58
54export KUBECONFIG=/ci/secrets/kubeconfig.yml 59export KUBECONFIG=/ci/secrets/kubeconfig.yml
55POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) 60POD=$(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
62rm -rf webroot 67rm -rf webroot
63docserver-builder -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup 68docserver build -c -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup
64POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) 69POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name})
65kubectl cp webroot/crates $POD:/data 70kubectl 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.
13export CARGO_NET_GIT_FETCH_WITH_CLI=true 13export CARGO_NET_GIT_FETCH_WITH_CLI=true
14 14
15cargo test --manifest-path ./embassy-executor/Cargo.toml 15cargo test --manifest-path ./embassy-executor/Cargo.toml --features metadata-name
16cargo test --manifest-path ./embassy-futures/Cargo.toml 16cargo test --manifest-path ./embassy-futures/Cargo.toml
17cargo test --manifest-path ./embassy-sync/Cargo.toml 17cargo test --manifest-path ./embassy-sync/Cargo.toml
18cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml 18cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml