summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-05-13 16:41:11 +0700
committerGitHub <[email protected]>2024-05-13 16:41:11 +0700
commit6f47746e5ff6e33b25e12742d62bcbf69f8a27a0 (patch)
treee4892f86e7bc788b31732971f4017513c310ed49 /tools
parentd707ea56b47e2fbbe5eaa4854a427a3a7873dea3 (diff)
more ci update (#2642)
* Circi use small docker * caching espressif docker image * only run make job on pull request or push to master * hw test run on pull request only, rename build_cmake to build.yml * enable all ci build, cmake(clang) and make(*) only run with pull_request or push to master
Diffstat (limited to 'tools')
-rw-r--r--tools/get_deps.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/get_deps.py b/tools/get_deps.py
index 20cbe64c7..2c2f97b4b 100644
--- a/tools/get_deps.py
+++ b/tools/get_deps.py
@@ -242,10 +242,12 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument('families', nargs='*', default=[], help='Families to fetch')
parser.add_argument('-b', '--board', action='append', default=[], help='Boards to fetch')
+ parser.add_argument('--print', action='store_true', help='Print commit hash only')
args = parser.parse_args()
families = args.families
boards = args.board
+ print_only = args.print
if len(families) == 0 and len(boards) == 0:
print("Warning: family and board are not specified, only fetching mandatory dependencies.")
@@ -268,8 +270,15 @@ def main():
if f in deps_optional[d][2]:
deps.append(d)
- with Pool() as pool:
- status = sum(pool.map(get_a_dep, deps))
+ if print_only:
+ pvalue = {}
+ for d in deps:
+ commit = deps_all[d][1]
+ pvalue[d] = commit
+ print(pvalue)
+ else:
+ with Pool() as pool:
+ status = sum(pool.map(get_a_dep, deps))
return status