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
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
3 changed files with 3 additions and 14 deletions

View File

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

View File

@ -108,7 +108,6 @@ jobs:
matrix:
board:
- 'raspberry_pi_pico'
steps:
- name: Clean workspace
run: |
@ -127,12 +126,6 @@ jobs:
name: ${{ 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
run: |
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)
for test in test_list:
# cmake, make
fw_list = [
# cmake build
f'cmake-build/cmake-build-{item["name"]}/device/{test}/{test}.elf',
# make build
f'examples/device/{test}/_build/{item["name"]}/{test}.elf',
# artifacts: esp32 use bin file
f'device/{test}/{test}.elf'
f'device/{test}/{test}.bin'
f'examples/device/{test}/_build/{item["name"]}/{test}.elf'
]
fw = None