aboutsummaryrefslogtreecommitdiff
path: root/.github/ci
diff options
context:
space:
mode:
authorTyler <[email protected]>2023-09-29 20:02:24 -0600
committerGitHub <[email protected]>2023-09-29 20:02:24 -0600
commit2f9b59c5cf21f1e2761a9ccefdfd86f0edea829c (patch)
tree8964744b4fb753cf98f6f413464106c4d2a72976 /.github/ci
parentce91fb2bfc846570ef543a09396c428d70675245 (diff)
parent95b3d9eb3b3657de3d7bc9c04f8fb83eae901640 (diff)
Merge branch 'main' into issue-1974-add-sai-driver
Diffstat (limited to '.github/ci')
-rwxr-xr-x.github/ci/build-stable.sh4
-rwxr-xr-x.github/ci/build.sh5
-rwxr-xr-x.github/ci/doc.sh3
-rwxr-xr-x.github/ci/test.sh6
4 files changed, 17 insertions, 1 deletions
diff --git a/.github/ci/build-stable.sh b/.github/ci/build-stable.sh
index 0dadd6102..8012f6923 100755
--- a/.github/ci/build-stable.sh
+++ b/.github/ci/build-stable.sh
@@ -8,6 +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
11# needed for "dumb HTTP" transport support
12# used when pointing stm32-metapac to a CI-built one.
13export CARGO_NET_GIT_FETCH_WITH_CLI=true
14
11hashtime restore /ci/cache/filetime.json || true 15hashtime restore /ci/cache/filetime.json || true
12hashtime save /ci/cache/filetime.json 16hashtime save /ci/cache/filetime.json
13 17
diff --git a/.github/ci/build.sh b/.github/ci/build.sh
index 30ca1e6f0..78ab976df 100755
--- a/.github/ci/build.sh
+++ b/.github/ci/build.sh
@@ -11,8 +11,13 @@ 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)
14 export TELEPROBE_CACHE=/ci/cache/teleprobe_cache.json
14fi 15fi
15 16
17# needed for "dumb HTTP" transport support
18# used when pointing stm32-metapac to a CI-built one.
19export CARGO_NET_GIT_FETCH_WITH_CLI=true
20
16hashtime restore /ci/cache/filetime.json || true 21hashtime restore /ci/cache/filetime.json || true
17hashtime save /ci/cache/filetime.json 22hashtime save /ci/cache/filetime.json
18 23
diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh
index 57184dc1d..66caa9150 100755
--- a/.github/ci/doc.sh
+++ b/.github/ci/doc.sh
@@ -39,6 +39,7 @@ docserver-builder -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/g
39docserver-builder -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup 39docserver-builder -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup
40docserver-builder -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup 40docserver-builder -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup
41docserver-builder -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static 41docserver-builder -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static
42docserver-builder -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup
42 43
43export KUBECONFIG=/ci/secrets/kubeconfig.yml 44export KUBECONFIG=/ci/secrets/kubeconfig.yml
44POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) 45POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name})
@@ -47,8 +48,8 @@ kubectl cp webroot/static $POD:/data
47 48
48# build and upload stm32 last 49# build and upload stm32 last
49# so that it doesn't prevent other crates from getting docs updates when it breaks. 50# so that it doesn't prevent other crates from getting docs updates when it breaks.
51
50rm -rf webroot 52rm -rf webroot
51docserver-builder -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup 53docserver-builder -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup
52
53POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) 54POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name})
54kubectl cp webroot/crates $POD:/data 55kubectl cp webroot/crates $POD:/data
diff --git a/.github/ci/test.sh b/.github/ci/test.sh
index 2892bcf8d..af0f21c2a 100755
--- a/.github/ci/test.sh
+++ b/.github/ci/test.sh
@@ -8,6 +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
11# needed for "dumb HTTP" transport support
12# used when pointing stm32-metapac to a CI-built one.
13export CARGO_NET_GIT_FETCH_WITH_CLI=true
14
11hashtime restore /ci/cache/filetime.json || true 15hashtime restore /ci/cache/filetime.json || true
12hashtime save /ci/cache/filetime.json 16hashtime save /ci/cache/filetime.json
13 17
@@ -28,3 +32,5 @@ cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --featu
28cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f429vg,exti,time-driver-any,exti 32cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f429vg,exti,time-driver-any,exti
29cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f732ze,exti,time-driver-any,exti 33cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f732ze,exti,time-driver-any,exti
30cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f769ni,exti,time-driver-any,exti 34cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f769ni,exti,time-driver-any,exti
35
36cargo test --manifest-path ./embassy-net-adin1110/Cargo.toml