build docs in Ci.
This commit is contained in:
parent
30adf996a1
commit
5f90914cb9
19
.github/ci/doc.sh
vendored
Executable file
19
.github/ci/doc.sh
vendored
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
## on push branch=main
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
export RUSTUP_HOME=/ci/cache/rustup
|
||||||
|
export CARGO_HOME=/ci/cache/cargo
|
||||||
|
export CARGO_TARGET_DIR=/ci/cache/target
|
||||||
|
|
||||||
|
hashtime restore /ci/cache/filetime.json || true
|
||||||
|
hashtime save /ci/cache/filetime.json
|
||||||
|
|
||||||
|
./d ci
|
||||||
|
|
||||||
|
docserver-builder -i ./build/stm32-metapac -o crates/stm32-metapac/git.zup
|
||||||
|
|
||||||
|
export KUBECONFIG=/ci/secrets/kubeconfig.yml
|
||||||
|
POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name})
|
||||||
|
kubectl cp crates $POD:/data
|
@ -1,3 +1,9 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "nightly-2023-05-18"
|
channel = "nightly-2023-05-18"
|
||||||
components = [ "rust-src", "rustfmt" ]
|
components = [ "rust-src", "rustfmt" ]
|
||||||
|
targets = [
|
||||||
|
"thumbv6m-none-eabi",
|
||||||
|
"thumbv7m-none-eabi",
|
||||||
|
"thumbv7em-none-eabi",
|
||||||
|
"thumbv8m.main-none-eabihf",
|
||||||
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user