diff options
Diffstat (limited to '.github')
| -rwxr-xr-x | .github/ci/build-stable.sh | 16 | ||||
| -rwxr-xr-x | .github/ci/build.sh (renamed from .github/ci/rust.sh) | 2 | ||||
| -rwxr-xr-x | .github/ci/test.sh | 28 |
3 files changed, 44 insertions, 2 deletions
diff --git a/.github/ci/build-stable.sh b/.github/ci/build-stable.sh new file mode 100755 index 000000000..0dadd6102 --- /dev/null +++ b/.github/ci/build-stable.sh | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | ## on push branch~=gh-readonly-queue/main/.* | ||
| 3 | ## on pull_request | ||
| 4 | |||
| 5 | set -euo pipefail | ||
| 6 | |||
| 7 | export RUSTUP_HOME=/ci/cache/rustup | ||
| 8 | export CARGO_HOME=/ci/cache/cargo | ||
| 9 | export CARGO_TARGET_DIR=/ci/cache/target | ||
| 10 | |||
| 11 | hashtime restore /ci/cache/filetime.json || true | ||
| 12 | hashtime save /ci/cache/filetime.json | ||
| 13 | |||
| 14 | sed -i 's/channel.*/channel = "stable"/g' rust-toolchain.toml | ||
| 15 | |||
| 16 | ./ci_stable.sh | ||
diff --git a/.github/ci/rust.sh b/.github/ci/build.sh index db1fc8538..1c3a7f3b0 100755 --- a/.github/ci/rust.sh +++ b/.github/ci/build.sh | |||
| @@ -4,8 +4,6 @@ | |||
| 4 | 4 | ||
| 5 | set -euo pipefail | 5 | set -euo pipefail |
| 6 | 6 | ||
| 7 | echo Hello World! | ||
| 8 | |||
| 9 | export RUSTUP_HOME=/ci/cache/rustup | 7 | export RUSTUP_HOME=/ci/cache/rustup |
| 10 | export CARGO_HOME=/ci/cache/cargo | 8 | export CARGO_HOME=/ci/cache/cargo |
| 11 | export CARGO_TARGET_DIR=/ci/cache/target | 9 | export CARGO_TARGET_DIR=/ci/cache/target |
diff --git a/.github/ci/test.sh b/.github/ci/test.sh new file mode 100755 index 000000000..a7140cfd9 --- /dev/null +++ b/.github/ci/test.sh | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | ## on push branch~=gh-readonly-queue/main/.* | ||
| 3 | ## on pull_request | ||
| 4 | |||
| 5 | set -euo pipefail | ||
| 6 | |||
| 7 | export RUSTUP_HOME=/ci/cache/rustup | ||
| 8 | export CARGO_HOME=/ci/cache/cargo | ||
| 9 | export CARGO_TARGET_DIR=/ci/cache/target | ||
| 10 | |||
| 11 | hashtime restore /ci/cache/filetime.json || true | ||
| 12 | hashtime save /ci/cache/filetime.json | ||
| 13 | |||
| 14 | cargo test --manifest-path ./embassy-sync/Cargo.toml | ||
| 15 | cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml | ||
| 16 | cargo test --manifest-path ./embassy-hal-common/Cargo.toml | ||
| 17 | cargo test --manifest-path ./embassy-time/Cargo.toml --features generic-queue | ||
| 18 | |||
| 19 | cargo test --manifest-path ./embassy-boot/boot/Cargo.toml | ||
| 20 | cargo test --manifest-path ./embassy-boot/boot/Cargo.toml --features nightly | ||
| 21 | cargo test --manifest-path ./embassy-boot/boot/Cargo.toml --features nightly,ed25519-dalek | ||
| 22 | cargo test --manifest-path ./embassy-boot/boot/Cargo.toml --features nightly,ed25519-salty | ||
| 23 | |||
| 24 | #cargo test --manifest-path ./embassy-nrf/Cargo.toml --no-default-features --features nightly,nrf52840,time-driver-rtc1 ## broken doctests | ||
| 25 | |||
| 26 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f429vg,exti,time-driver-any,exti | ||
| 27 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f732ze,exti,time-driver-any,exti | ||
| 28 | cargo test --manifest-path ./embassy-stm32/Cargo.toml --no-default-features --features nightly,stm32f769ni,exti,time-driver-any,exti | ||
