-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run HIL tests as part of PR checks (#1959)
* Run HIL tests as part of PR checks * Cancel pending HIL runs * Only run for ready PRs
- Loading branch information
Showing
2 changed files
with
10 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,48 +164,3 @@ jobs: | |
|
||
# Check the formatting of all packages: | ||
- run: cargo xtask fmt-packages --check | ||
|
||
# -------------------------------------------------------------------------- | ||
# Tests | ||
|
||
hil: | ||
name: HIL Test | ${{ matrix.target.soc }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
# RISC-V devices: | ||
- soc: esp32c2 | ||
rust-target: riscv32imc-unknown-none-elf | ||
- soc: esp32c3 | ||
rust-target: riscv32imc-unknown-none-elf | ||
- soc: esp32c6 | ||
rust-target: riscv32imac-unknown-none-elf | ||
- soc: esp32h2 | ||
rust-target: riscv32imac-unknown-none-elf | ||
# Xtensa devices: | ||
- soc: esp32 | ||
- soc: esp32s2 | ||
- soc: esp32s3 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Install the Rust toolchain for RISC-V devices: | ||
- if: ${{ !contains(fromJson('["esp32", "esp32s2", "esp32s3"]'), matrix.target.soc) }} | ||
uses: dtolnay/rust-toolchain@v1 | ||
with: | ||
target: ${{ matrix.target.rust-target }} | ||
toolchain: stable | ||
components: rust-src | ||
# Install the Rust toolchain for Xtensa devices: | ||
- if: contains(fromJson('["esp32", "esp32s2", "esp32s3"]'), matrix.target.soc) | ||
uses: esp-rs/[email protected] | ||
with: | ||
buildtargets: ${{ matrix.target.soc }} | ||
ldproxy: false | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo xtask build-tests ${{ matrix.target.soc }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters