aboutsummaryrefslogtreecommitdiff
path: root/.github/ci/doc.sh
diff options
context:
space:
mode:
Diffstat (limited to '.github/ci/doc.sh')
-rwxr-xr-x.github/ci/doc.sh54
1 files changed, 3 insertions, 51 deletions
diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh
index 876c261a1..dab47e86d 100755
--- a/.github/ci/doc.sh
+++ b/.github/ci/doc.sh
@@ -9,62 +9,14 @@ set -euxo pipefail
9export RUSTUP_HOME=/ci/cache/rustup 9export RUSTUP_HOME=/ci/cache/rustup
10export CARGO_HOME=/ci/cache/cargo 10export CARGO_HOME=/ci/cache/cargo
11export CARGO_TARGET_DIR=/ci/cache/target 11export CARGO_TARGET_DIR=/ci/cache/target
12export BUILDER_THREADS=4 12export PATH=$CARGO_HOME/bin:$PATH
13export BUILDER_COMPRESS=true
14mv rust-toolchain-nightly.toml rust-toolchain.toml 13mv rust-toolchain-nightly.toml rust-toolchain.toml
15 14
16# force rustup to download the toolchain before starting building. 15cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 676e6d602bf016dc71f1e98f2c7f191d7bd20707
17# Otherwise, the docs builder is running multiple instances of cargo rustdoc concurrently.
18# They all see the toolchain is not installed and try to install it in parallel
19# which makes rustup very sad
20rustc --version > /dev/null
21 16
22docserver build -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup 17cargo embassy-devtool doc -o webroot
23docserver build -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup
24docserver build -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup
25docserver build -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup
26docserver build -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup
27docserver build -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup
28docserver build -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup
29docserver build -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup
30docserver build -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup
31docserver build -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup
32docserver build -i ./embassy-nxp -o webroot/crates/embassy-nxp/git.zup
33docserver build -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup
34docserver build -i ./cyw43 -o webroot/crates/cyw43/git.zup
35docserver build -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup
36docserver build -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static
37
38docserver build -i ./embassy-time -o webroot/crates/embassy-time/git.zup
39docserver build -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup
40docserver build -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup
41
42docserver build -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup
43docserver build -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup
44docserver build -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup
45docserver build -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup
46docserver build -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup
47
48docserver build -i ./embassy-net -o webroot/crates/embassy-net/git.zup
49docserver build -i ./embassy-net-nrf91 -o webroot/crates/embassy-net-nrf91/git.zup
50docserver build -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup
51docserver build -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup
52docserver build -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup
53docserver build -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup
54docserver build -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup
55docserver build -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup
56docserver build -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup
57docserver build -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup
58 18
59export KUBECONFIG=/ci/secrets/kubeconfig.yml 19export KUBECONFIG=/ci/secrets/kubeconfig.yml
60POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) 20POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name})
61kubectl cp webroot/crates $POD:/data 21kubectl cp webroot/crates $POD:/data
62kubectl cp webroot/static $POD:/data 22kubectl cp webroot/static $POD:/data
63
64# build and upload stm32 last
65# so that it doesn't prevent other crates from getting docs updates when it breaks.
66
67rm -rf webroot
68docserver build -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup
69POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name})
70kubectl cp webroot/crates $POD:/data