aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorGustav Toft <[email protected]>2024-05-30 09:56:09 +0200
committerGustav Toft <[email protected]>2024-05-30 09:56:09 +0200
commitd3c3670a966cd68b8d2d46a732ab971390ec3006 (patch)
treee0815debd51e1baa5b019049e0ea1b1a286f7742 /.github
parentab36329dce653a2ee20d32e9a5345799d9595202 (diff)
parent50210e8cdc95c3c8bea150541cd8f15482450b1e (diff)
Merge branch 'main' of https://github.com/embassy-rs/embassy into fix_main
Diffstat (limited to '.github')
-rwxr-xr-x.github/ci/book.sh17
-rwxr-xr-x.github/ci/build.sh2
-rwxr-xr-x.github/ci/doc.sh1
-rwxr-xr-x.github/ci/test-nightly.sh1
-rwxr-xr-x.github/ci/test.sh7
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
4set -euxo pipefail
5
6make -C docs
7
8export KUBECONFIG=/ci/secrets/kubeconfig.yml
9POD=$(kubectl -n embassy get po -l app=website -o jsonpath={.items[0].metadata.name})
10
11mkdir -p build
12mv docs/book build/book
13tar -C build -cf book.tar book
14kubectl exec $POD -- mkdir -p /usr/share/nginx/html
15kubectl cp book.tar $POD:/usr/share/nginx/html/
16kubectl exec $POD -- find /usr/share/nginx/html
17kubectl 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
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
10if [ -f /ci/secrets/teleprobe-token.txt ]; then 10if [ -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
38docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup 38docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup
39docserver-builder -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup 39docserver-builder -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup
40docserver-builder -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup 40docserver-builder -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup
41docserver-builder -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup
41 42
42docserver-builder -i ./embassy-net -o webroot/crates/embassy-net/git.zup 43docserver-builder -i ./embassy-net -o webroot/crates/embassy-net/git.zup
43docserver-builder -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup 44docserver-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
12MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml 12MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml
13MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml --features nightly 13MIRIFLAGS=-Zmiri-ignore-leaks cargo miri test --manifest-path ./embassy-executor/Cargo.toml --features nightly
14MIRIFLAGS=-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
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
10 10
11cargo test --manifest-path ./embassy-sync/Cargo.toml 11cargo test --manifest-path ./embassy-futures/Cargo.toml
12cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml 12cargo test --manifest-path ./embassy-sync/Cargo.toml
13cargo test --manifest-path ./embassy-hal-internal/Cargo.toml 13cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml
14cargo test --manifest-path ./embassy-hal-internal/Cargo.toml
14cargo test --manifest-path ./embassy-time/Cargo.toml --features generic-queue,mock-driver 15cargo test --manifest-path ./embassy-time/Cargo.toml --features generic-queue,mock-driver
15cargo test --manifest-path ./embassy-time-driver/Cargo.toml 16cargo test --manifest-path ./embassy-time-driver/Cargo.toml
16 17