-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable C3, H2, S2 and S3 HIL #1513
Changes from all commits
b939098
76d8221
2e5beb5
82682d0
e782e75
3bd5507
8ec7e03
187c30a
f71398a
112d1d2
f86b44e
8c8fde2
e1d8730
e6a17a3
c44a91d
7c12168
daf8746
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,18 +26,21 @@ jobs: | |
matrix: | ||
target: | ||
# RISC-V devices: | ||
# - soc: esp32c3 | ||
# 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 | ||
- soc: esp32h2 | ||
rust-target: riscv32imac-unknown-none-elf | ||
# # Xtensa devices: | ||
# - soc: esp32s3 | ||
- soc: esp32s2 | ||
rust-target: xtensa-esp32s2-none-elf | ||
- soc: esp32s3 | ||
rust-target: xtensa-esp32s3-none-elf | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
if: github.event_name != 'workflow_dispatch' | ||
|
||
- uses: actions/checkout@v4 | ||
if: github.event_name == 'workflow_dispatch' | ||
with: | ||
|
@@ -59,7 +62,7 @@ jobs: | |
default: true | ||
ldproxy: false | ||
|
||
- name: Run tests | ||
- name: Build tests | ||
run: cargo xtask build-tests ${{ matrix.target.soc }} | ||
|
||
- name: Prepare artifact | ||
|
@@ -78,12 +81,12 @@ jobs: | |
base_name="$(basename "$file" | cut -d'-' -f1)" | ||
mv "$file" "tests/$base_name" | ||
done | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: tests-${{ matrix.target.soc }} | ||
path: /home/runner/work/esp-hal/esp-hal/tests | ||
if-no-files-found: error | ||
overwrite: true | ||
|
||
hil: | ||
name: HIL Test | ${{ matrix.target.soc }} | ||
|
@@ -95,24 +98,25 @@ jobs: | |
matrix: | ||
target: | ||
# RISC-V devices: | ||
# - soc: esp32c3 | ||
# runner: rustboard | ||
- soc: esp32c3 | ||
runner: esp32c3-usb | ||
- soc: esp32c6 | ||
runner: esp32c6-usb | ||
# - soc: esp32h2 | ||
# runner: esp32h2-usb | ||
# # Xtensa devices: | ||
# - soc: esp32s3 | ||
# runner: esp32s3-usb | ||
- soc: esp32h2 | ||
runner: esp32h2-usb | ||
# Xtensa devices: | ||
- soc: esp32s2 | ||
runner: esp32s2-jtag | ||
- soc: esp32s3 | ||
runner: esp32s3-usb | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: tests-${{ matrix.target.soc }} | ||
path: tests | ||
- name: Run tests | ||
path: tests-${{ matrix.target.soc }} | ||
|
||
- name: Run Tests | ||
run: | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would really like to see this implemented in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Me too, this bash code and the one preparing the artifacts looks quite bad to me. Any suggestions on how to integrate this with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a subcommand to run all the elfs in a folder in |
||
export PATH=$PATH:/home/espressif/.cargo/bin | ||
for file in "tests"/*; do | ||
probe-rs run --chip ${{ matrix.target.soc }} "$file" | ||
done | ||
|
||
cargo xtask run-elfs ${{ matrix.target.soc }} tests-${{ matrix.target.soc }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
//! Delay Test | ||
|
||
//% CHIPS: esp32 esp32c2 esp32c3 esp32c6 esp32s3 | ||
|
||
#![no_std] | ||
#![no_main] | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've also tested with
cargo build --out-dir...
but since the elfs are generated under thetarget/.../deps
and are not the "final" artifacts it does not help. My idea was to modifycargo xtast build-tests
to add the--out-dir
argument and avoid all this bash code.