diff options
| author | Gustav Toft <[email protected]> | 2024-05-30 09:56:09 +0200 |
|---|---|---|
| committer | Gustav Toft <[email protected]> | 2024-05-30 09:56:09 +0200 |
| commit | d3c3670a966cd68b8d2d46a732ab971390ec3006 (patch) | |
| tree | e0815debd51e1baa5b019049e0ea1b1a286f7742 /.github | |
| parent | ab36329dce653a2ee20d32e9a5345799d9595202 (diff) | |
| parent | 50210e8cdc95c3c8bea150541cd8f15482450b1e (diff) | |
Merge branch 'main' of https://github.com/embassy-rs/embassy into fix_main
Diffstat (limited to '.github')
| -rwxr-xr-x | .github/ci/book.sh | 17 | ||||
| -rwxr-xr-x | .github/ci/build.sh | 2 | ||||
| -rwxr-xr-x | .github/ci/doc.sh | 1 | ||||
| -rwxr-xr-x | .github/ci/test-nightly.sh | 1 | ||||
| -rwxr-xr-x | .github/ci/test.sh | 7 |
5 files changed, 24 insertions, 4 deletions
diff --git a/.github/ci/book.sh b/.github/ci/book.sh new file mode 100755 index 000000000..285cdc8fa --- /dev/null +++ b/.github/ci/book.sh | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | ## on push branch=main | ||
| 3 | |||
| 4 | set -euxo pipefail | ||
| 5 | |||
| 6 | make -C docs | ||
| 7 | |||
| 8 | export KUBECONFIG=/ci/secrets/kubeconfig.yml | ||
| 9 | POD=$(kubectl -n embassy get po -l app=website -o jsonpath={.items[0].metadata.name}) | ||
| 10 | |||
| 11 | mkdir -p build | ||
| 12 | mv docs/book build/book | ||
| 13 | tar -C build -cf book.tar book | ||
| 14 | kubectl exec $POD -- mkdir -p /usr/share/nginx/html | ||
| 15 | kubectl cp book.tar $POD:/usr/share/nginx/html/ | ||
| 16 | kubectl exec $POD -- find /usr/share/nginx/html | ||
| 17 | kubectl exec $POD -- tar -C /usr/share/nginx/html -xvf /usr/share/nginx/html/book.tar | ||
diff --git a/.github/ci/build.sh b/.github/ci/build.sh index 77d2b3cab..68a7c0c34 100755 --- a/.github/ci/build.sh +++ b/.github/ci/build.sh | |||
| @@ -7,7 +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 | if [ -f /ci/secrets/teleprobe-token.txt ]; then | 10 | if [ -f /ci/secrets/teleprobe-token.txt ]; then |
| 11 | echo Got teleprobe token! | 11 | echo Got teleprobe token! |
| 12 | export TELEPROBE_HOST=https://teleprobe.embassy.dev | 12 | export TELEPROBE_HOST=https://teleprobe.embassy.dev |
| 13 | export TELEPROBE_TOKEN=$(cat /ci/secrets/teleprobe-token.txt) | 13 | export TELEPROBE_TOKEN=$(cat /ci/secrets/teleprobe-token.txt) |
diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 7112d8aaa..47babe8f5 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh | |||
| @@ -38,6 +38,7 @@ docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup | |||
| 38 | docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup | 38 | docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup |
| 39 | docserver-builder -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup | 39 | docserver-builder -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup |
| 40 | docserver-builder -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup | 40 | docserver-builder -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup |
| 41 | docserver-builder -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup | ||
| 41 | 42 | ||
| 42 | docserver-builder -i ./embassy-net -o webroot/crates/embassy-net/git.zup | 43 | docserver-builder -i ./embassy-net -o webroot/crates/embassy-net/git.zup |
| 43 | docserver-builder -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup | 44 | docserver-builder -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup |
diff --git a/.github/ci/test-nightly.sh b/.github/ci/test-nightly.sh index d6e5dc574..1724ffe89 100755 --- a/.github/ci/test-nightly.sh +++ b/.github/ci/test-nightly.sh | |||
| @@ -11,3 +11,4 @@ mv rust-toolchain-nightly.toml rust-toolchain.toml | |||
| 11 | 11 | ||
| 12 | MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml | 12 | MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml |
| 13 | MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml --features nightly | 13 | MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml --features nightly |
| 14 | 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 8a58939f6..41da644fc 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh | |||
| @@ -8,9 +8,10 @@ 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 | 10 | ||
| 11 | cargo test --manifest-path ./embassy-sync/Cargo.toml | 11 | cargo test --manifest-path ./embassy-futures/Cargo.toml |
| 12 | cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml | 12 | cargo test --manifest-path ./embassy-sync/Cargo.toml |
| 13 | cargo test --manifest-path ./embassy-hal-internal/Cargo.toml | 13 | cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml |
| 14 | cargo test --manifest-path ./embassy-hal-internal/Cargo.toml | ||
| 14 | cargo test --manifest-path ./embassy-time/Cargo.toml --features generic-queue,mock-driver | 15 | cargo test --manifest-path ./embassy-time/Cargo.toml --features generic-queue,mock-driver |
| 15 | cargo test --manifest-path ./embassy-time-driver/Cargo.toml | 16 | cargo test --manifest-path ./embassy-time-driver/Cargo.toml |
| 16 | 17 | ||
