Skip to content

Commit 008237c

Browse files
committed
fix: Return flash test, add container option to main task
1 parent b233fc0 commit 008237c

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/hil.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ jobs:
9898
if: ${{ github.repository_owner == 'esp-rs' }}
9999
needs: [build-app, build-espflash]
100100
runs-on: [self-hosted, linux, x64, "${{ matrix.board }}" ]
101+
container:
102+
image: ubuntu:20.04
103+
options: --privileged
101104
strategy:
102105
matrix:
103106
# board: [esp32, esp32c2, esp32c3, esp32c6, esp32h2, esp32s2, esp32s3]
@@ -133,18 +136,13 @@ jobs:
133136
echo "Current user: $(whoami)"
134137
ls -l /dev/serial_ports
135138
136-
- name: monitor only test
139+
- name: flash test
140+
env:
141+
ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board }}
142+
ESPFLASH_APP: espflash/${{ matrix.board }}_app/hello_world
137143
shell: bash
138144
run: |
139-
timeout 10s espflash_app/espflash monitor 2>&1
140-
141-
# - name: flash test
142-
# env:
143-
# ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board }}
144-
# ESPFLASH_APP: espflash/${{ matrix.board }}_app/hello_world
145-
# shell: bash
146-
# run: |
147-
# timeout 10s espflash_app/espflash flash --monitor ${{ env.ESPFLASH_APP }} 2>&1
145+
timeout 10s espflash_app/espflash flash --monitor ${{ env.ESPFLASH_APP }} 2>&1
148146
149147
# if ! echo "$result" | grep -q "Flashing has completed!"; then
150148
# if [[ $result == *"Flashing has completed!"* && $result == *"Hello world!"* ]]; then

0 commit comments

Comments
 (0)