Skip to content

Commit

Permalink
fix: Return flash test, add container option to main task
Browse files Browse the repository at this point in the history
  • Loading branch information
achxkloel committed Jan 25, 2024
1 parent b233fc0 commit 008237c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/hil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ jobs:
if: ${{ github.repository_owner == 'esp-rs' }}
needs: [build-app, build-espflash]
runs-on: [self-hosted, linux, x64, "${{ matrix.board }}" ]
container:
image: ubuntu:20.04
options: --privileged
strategy:
matrix:
# board: [esp32, esp32c2, esp32c3, esp32c6, esp32h2, esp32s2, esp32s3]
Expand Down Expand Up @@ -133,18 +136,13 @@ jobs:
echo "Current user: $(whoami)"
ls -l /dev/serial_ports
- name: monitor only test
- name: flash test
env:
ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board }}
ESPFLASH_APP: espflash/${{ matrix.board }}_app/hello_world
shell: bash
run: |
timeout 10s espflash_app/espflash monitor 2>&1
# - name: flash test
# env:
# ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board }}
# ESPFLASH_APP: espflash/${{ matrix.board }}_app/hello_world
# shell: bash
# run: |
# timeout 10s espflash_app/espflash flash --monitor ${{ env.ESPFLASH_APP }} 2>&1
timeout 10s espflash_app/espflash flash --monitor ${{ env.ESPFLASH_APP }} 2>&1
# if ! echo "$result" | grep -q "Flashing has completed!"; then
# if [[ $result == *"Flashing has completed!"* && $result == *"Hello world!"* ]]; then
Expand Down

0 comments on commit 008237c

Please sign in to comment.