update get-deps for ci

This commit is contained in:
hathach 2022-07-01 16:37:34 +07:00
parent 12341118e3
commit 5323472afd
2 changed files with 6 additions and 1 deletions

View File

@ -94,7 +94,7 @@ jobs:
- name: Get Dependencies
run: |
b=`find hw/bsp/${{ matrix.family }}/boards -depth -maxdepth 1 -type d -name '[^.]?*' -printf %f -quit`
make BOARD={b} get-deps
make -C examples/device/board_test BOARD=${b} get-deps
- name: Build
run: python3 tools/build_family.py ${{ matrix.family }}

View File

@ -1,6 +1,7 @@
import os
import sys
import time
import subprocess
from multiprocessing import Pool
import build_utils
@ -38,6 +39,10 @@ if __name__ == '__main__':
filter_with_input(all_boards)
all_boards.sort()
# Get dependencies
for b in all_boards:
subprocess.run("make -C examples/device/board_test BOARD={} get-deps".format(b), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
print(build_separator)
print(build_utils.build_format.format('Example', 'Board', '\033[39mResult\033[0m', 'Time', 'Flash', 'SRAM'))
total_time = time.monotonic()