extract artifacts to same folder structure as ci build

This commit is contained in:
hathach
2023-12-11 14:43:54 +07:00
parent 3689c4c604
commit c829116830
3 changed files with 3 additions and 14 deletions

View File

@@ -78,7 +78,6 @@ jobs:
matrix: matrix:
board: board:
- 'espressif_s3_devkitc' - 'espressif_s3_devkitc'
steps: steps:
- name: Clean workspace - name: Clean workspace
run: | run: |
@@ -95,6 +94,7 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: ${{ matrix.board }} name: ${{ matrix.board }}
path: cmake-build/cmake-build-${{ matrix.board }}
- name: Test on actual hardware - name: Test on actual hardware
run: | run: |

View File

@@ -108,7 +108,6 @@ jobs:
matrix: matrix:
board: board:
- 'raspberry_pi_pico' - 'raspberry_pi_pico'
steps: steps:
- name: Clean workspace - name: Clean workspace
run: | run: |
@@ -127,12 +126,6 @@ jobs:
name: ${{ matrix.board }} name: ${{ matrix.board }}
path: cmake-build/cmake-build-${{ matrix.board }} path: cmake-build/cmake-build-${{ matrix.board }}
- name: Display structure of downloaded files
run: ls -R
working-directory: cmake-build/cmake-build-${{ matrix.board }}
- run: tree
- name: Test on actual hardware - name: Test on actual hardware
run: | run: |
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json

View File

@@ -304,14 +304,10 @@ def main(config_file, board):
test_list.remove(skip) test_list.remove(skip)
for test in test_list: for test in test_list:
# cmake, make
fw_list = [ fw_list = [
# cmake build
f'cmake-build/cmake-build-{item["name"]}/device/{test}/{test}.elf', f'cmake-build/cmake-build-{item["name"]}/device/{test}/{test}.elf',
# make build f'examples/device/{test}/_build/{item["name"]}/{test}.elf'
f'examples/device/{test}/_build/{item["name"]}/{test}.elf',
# artifacts: esp32 use bin file
f'device/{test}/{test}.elf'
f'device/{test}/{test}.bin'
] ]
fw = None fw = None