From c49223a32bb7778b25bc099eec36ceafcd71a8b3 Mon Sep 17 00:00:00 2001 From: Juraj Sadel Date: Tue, 23 Jul 2024 13:46:12 +0200 Subject: [PATCH 1/2] try to fix espflash command not found in HIL CI --- .github/workflows/hil.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hil.yml b/.github/workflows/hil.yml index 5ae1879da9d..73305064bf5 100644 --- a/.github/workflows/hil.yml +++ b/.github/workflows/hil.yml @@ -129,4 +129,6 @@ jobs: - name: Erase Flash on Failure if: ${{ failure() && steps.run-tests.conclusion == 'failure' }} - run: espflash erase-flash + run: | + export PATH=$PATH:/home/espressif/.cargo/bin + espflash erase-flash From 6105eac572254b4ea11b63e082eb09abf10cdc75 Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Tue, 23 Jul 2024 16:42:30 +0100 Subject: [PATCH 2/2] Specify espflash port --- .github/workflows/hil.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hil.yml b/.github/workflows/hil.yml index 73305064bf5..6a805c87004 100644 --- a/.github/workflows/hil.yml +++ b/.github/workflows/hil.yml @@ -103,24 +103,29 @@ jobs: # RISC-V devices: - soc: esp32c2 runner: esp32c2-jtag + usb: ACM0 - soc: esp32c3 runner: esp32c3-usb + usb: ACM0 - soc: esp32c6 runner: esp32c6-usb + usb: ACM0 - soc: esp32h2 runner: esp32h2-usb + usb: ACM0 # Xtensa devices: - soc: esp32s2 runner: esp32s2-jtag + usb: USB0 - soc: esp32s3 runner: esp32s3-usb + usb: USB0 steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: name: tests-${{ matrix.target.soc }} path: tests-${{ matrix.target.soc }} - - name: Run Tests id: run-tests run: | @@ -129,6 +134,8 @@ jobs: - name: Erase Flash on Failure if: ${{ failure() && steps.run-tests.conclusion == 'failure' }} + env: + ESPFLASH_PORT: /dev/tty${{ matrix.target.usb }} run: | export PATH=$PATH:/home/espressif/.cargo/bin espflash erase-flash