test changing upload artifacts for hil test

This commit is contained in:
hathach 2023-12-11 11:45:50 +07:00
parent 338ff2daba
commit fd55b96ca1
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
2 changed files with 22 additions and 9 deletions

View File

@ -48,3 +48,16 @@ jobs:
- name: Build - name: Build
run: docker run --rm -v $PWD:/project -w /project espressif/idf:latest python3 tools/build_esp32.py ${{ matrix.board }} run: docker run --rm -v $PWD:/project -w /project espressif/idf:latest python3 tools/build_esp32.py ${{ matrix.board }}
- name: test dir
run: tree
- name: Upload Artifacts for Hardware Testing
if: matrix.board == 'espressif_s3_devkitc' && github.repository_owner == 'hathach'
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.board }}
path: |
cmake-build/cmake-build-${{ matrix.board }}/device/*/*.elf
cmake-build/cmake-build-${{ matrix.board }}/device/*/config.env
cmake-build/cmake-build-${{ matrix.board }}/device/*/flash_args

View File

@ -87,21 +87,21 @@ jobs:
PICO_SDK_PATH: ${{ github.workspace }}/pico-sdk PICO_SDK_PATH: ${{ github.workspace }}/pico-sdk
# Upload binaries for hardware test with self-hosted # Upload binaries for hardware test with self-hosted
- name: Prepare rp2040 Artifacts # - name: Prepare rp2040 Artifacts
if: contains(matrix.family, 'rp2040') && github.repository_owner == 'hathach' # if: contains(matrix.family, 'rp2040') && github.repository_owner == 'hathach'
working-directory: ${{github.workspace}}/cmake-build/cmake-build-raspberry_pi_pico # working-directory: ${{github.workspace}}/cmake-build/cmake-build-raspberry_pi_pico
run: | # run: |
find device/ -name "*.elf" -exec mv {} ../../ \; # find device/ -name "*.elf" -exec mv {} ../../ \;
# find host/ -name "*.elf" -exec mv {} ../../ \; # # find host/ -name "*.elf" -exec mv {} ../../ \;
# find dual/ -name "*.elf" -exec mv {} ../../ \; # # find dual/ -name "*.elf" -exec mv {} ../../ \;
- name: Upload Artifacts for rp2040 - name: Upload Artifacts for Hardware Testing
if: contains(matrix.family,'rp2040') && github.repository_owner == 'hathach' if: contains(matrix.family,'rp2040') && github.repository_owner == 'hathach'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: rp2040 name: rp2040
path: | path: |
*.elf cmake-build/cmake-build-raspberry_pi_pico/device/*/*.elf
# --------------------------------------- # ---------------------------------------
# Hardware in the loop (HIL) # Hardware in the loop (HIL)