diff options
| author | Tyler <[email protected]> | 2023-09-29 20:02:24 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-29 20:02:24 -0600 |
| commit | 2f9b59c5cf21f1e2761a9ccefdfd86f0edea829c (patch) | |
| tree | 8964744b4fb753cf98f6f413464106c4d2a72976 /.github/ci | |
| parent | ce91fb2bfc846570ef543a09396c428d70675245 (diff) | |
| parent | 95b3d9eb3b3657de3d7bc9c04f8fb83eae901640 (diff) | |
Merge branch 'main' into issue-1974-add-sai-driver
Diffstat (limited to '.github/ci')
| -rwxr-xr-x | .github/ci/build-stable.sh | 4 | ||||
| -rwxr-xr-x | .github/ci/build.sh | 5 | ||||
| -rwxr-xr-x | .github/ci/doc.sh | 3 | ||||
| -rwxr-xr-x | .github/ci/test.sh | 6 |
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 | |||
| 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 | # needed for "dumb HTTP" transport support | ||
| 12 | # used when pointing stm32-metapac to a CI-built one. | ||
| 13 | export CARGO_NET_GIT_FETCH_WITH_CLI=true | ||
| 14 | |||
| 11 | hashtime restore /ci/cache/filetime.json || true | 15 | hashtime restore /ci/cache/filetime.json || true |
| 12 | hashtime save /ci/cache/filetime.json | 16 | hashtime 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 | ||
| 14 | fi | 15 | fi |
| 15 | 16 | ||
| 17 | # needed for "dumb HTTP" transport support | ||
| 18 | # used when pointing stm32-metapac to a CI-built one. | ||
| 19 | export CARGO_NET_GIT_FETCH_WITH_CLI=true | ||
| 20 | |||
| 16 | hashtime restore /ci/cache/filetime.json || true | 21 | hashtime restore /ci/cache/filetime.json || true |
| 17 | hashtime save /ci/cache/filetime.json | 22 | hashtime 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 | |||
| 39 | docserver-builder -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup | 39 | docserver-builder -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup |
| 40 | docserver-builder -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup | 40 | docserver-builder -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup |
| 41 | docserver-builder -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static | 41 | docserver-builder -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static |
| 42 | docserver-builder -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup | ||
| 42 | 43 | ||
| 43 | export KUBECONFIG=/ci/secrets/kubeconfig.yml | 44 | export KUBECONFIG=/ci/secrets/kubeconfig.yml |
| 44 | POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) | 45 | POD=$(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 | |||
| 50 | rm -rf webroot | 52 | rm -rf webroot |
| 51 | docserver-builder -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup | 53 | docserver-builder -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup |
| 52 | |||
| 53 | POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) | 54 | POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) |
| 54 | kubectl cp webroot/crates $POD:/data | 55 | kubectl 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 | |||
| 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 | # needed for "dumb HTTP" transport support | ||
| 12 | # used when pointing stm32-metapac to a CI-built one. | ||
| 13 | export CARGO_NET_GIT_FETCH_WITH_CLI=true | ||
| 14 | |||
| 11 | hashtime restore /ci/cache/filetime.json || true | 15 | hashtime restore /ci/cache/filetime.json || true |
| 12 | hashtime save /ci/cache/filetime.json | 16 | hashtime save /ci/cache/filetime.json |
| 13 | 17 | ||
| @@ -28,3 +32,5 @@ cargo test --manifest-path ./embassy-rp/Cargo.toml --no-default-features --featu | |||
| 28 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f429vg,exti,time-driver-any,exti | 32 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f429vg,exti,time-driver-any,exti |
| 29 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f732ze,exti,time-driver-any,exti | 33 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f732ze,exti,time-driver-any,exti |
| 30 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f769ni,exti,time-driver-any,exti | 34 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f769ni,exti,time-driver-any,exti |
| 35 | |||
| 36 | cargo test --manifest-path ./embassy-net-adin1110/Cargo.toml | ||
