Skip to content

Commit

Permalink
fix hil
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed May 10, 2024
1 parent 0fbed00 commit 66cc993
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/hil_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@ jobs:
echo "BOARD_LIST=$BOARD_LIST" >> $GITHUB_OUTPUT
echo "BOARD_LIST=$BOARD_LIST" >> $GITHUB_ENV
# Espresif boards need to build with docker
BOARD_NON_ESP=$(jq -r '.boards[] | select(.flasher == "esptool") | "-b " + .name' test/hil/pi4.json | tr '\n' ' ')
BOARD_ESP=$(jq -r '.boards[] | select(.flasher == "esptool") | "-b " + .name' test/hil/pi4.json | tr '\n' ' ')
# Non-Espresif boards
BOARD_NON_ESP=$(jq -r '.boards[] | select(.flasher != "esptool") | "-b " + .name' test/hil/pi4.json | tr '\n' ' ')
echo "BOARD_NON_ESP_LIST=$BOARD_NON_ESP_LIST"
echo "BOARD_NON_ESP_LIST=$BOARD_NON_ESP_LIST" >> $GITHUB_ENV
# Espressif boards
BOARD_ESP=$(jq -r '.boards[] | select(.flasher == "esptool") | "-b " + .name' test/hil/pi4.json | tr '\n' ' ')
echo "BOARD_ESP_LIST=$BOARD_ESP_LIST"
echo "BOARD_ESP_LIST=$BOARD_ESP_LIST" >> $GITHUB_ENV
- name: Setup ARM Toolchain
Expand All @@ -76,11 +80,11 @@ jobs:
arg: ${{ env.BOARD_LIST }}

- name: Build
run: python tools/build.py $BOARD_LIST
run: python tools/build.py $BOARD_NON_ESP_LIST

- name: Build Espressif
if: env.BOARD_ESP_LIST != ''
run: docker run --rm -v $PWD:/project -w /project espressif/idf:v5.1.1 python3 tools/build.py $BOARD_ESP
run: docker run --rm -v $PWD:/project -w /project espressif/idf:v5.1.1 python3 tools/build.py $BOARD_ESP_LIST

- name: Upload Artifacts for Hardware Testing
uses: actions/upload-artifact@v4
Expand Down
3 changes: 1 addition & 2 deletions tools/get_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,7 @@ def main():
boards = args.board

if len(families) == 0 and len(boards) == 0:
print("Please specify family or board to fetch")
return 1
print("Warning: family and board are not specified, only fetching mandatory dependencies.")

status = 0
deps = list(deps_mandatory.keys())
Expand Down

0 comments on commit 66cc993

Please sign in to comment.