From 4b13338713bb2bc5a87fa083b63f40696717be86 Mon Sep 17 00:00:00 2001 From: Abhik Roy Date: Tue, 16 Jan 2024 00:37:32 +1100 Subject: [PATCH] fix(common): Fixed scripts for build test failure --- .github/workflows/console_cmd_wifi__build.yml | 3 ++- ci/build_apps.py | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/console_cmd_wifi__build.yml b/.github/workflows/console_cmd_wifi__build.yml index fd2822082eb..b456ed2aa76 100644 --- a/.github/workflows/console_cmd_wifi__build.yml +++ b/.github/workflows/console_cmd_wifi__build.yml @@ -29,4 +29,5 @@ jobs: run: | ${IDF_PATH}/install.sh --enable-pytest . ${IDF_PATH}/export.sh - python $IDF_PATH/tools/ci/ci_build_apps.py . --target ${{ matrix.idf_target }} -vv --preserve-all --pytest-app + pwd + python ../../../ci/build_apps.py . --target ${{ matrix.idf_target }} -vv --preserve-all --pytest-app diff --git a/ci/build_apps.py b/ci/build_apps.py index a1fd942e981..6a0938a28f5 100644 --- a/ci/build_apps.py +++ b/ci/build_apps.py @@ -17,6 +17,12 @@ formatter_class=argparse.ArgumentDefaultsHelpFormatter, ) parser.add_argument('paths', nargs='+', help='Paths to the apps to build.') + parser.add_argument( + '-v', + '--verbose', + action='count', + help='Increase the LOGGER level of the script. Can be specified multiple times.', + ) parser.add_argument( '-t', '--target', @@ -28,6 +34,8 @@ parser.add_argument('-d', '--delete', action='store_true', help='Delete build artifacts') parser.add_argument('-c', '--recursive', action='store_true', help='Build recursively') parser.add_argument('-l', '--linux', action='store_true', help='Include linux build (dont check warnings)') + parser.add_argument('--preserve-all', action='store_true', help='Preserve the binaries for all apps when specified.') + parser.add_argument('--pytest-apps', action='store_true', help='Only build apps required by pytest scripts.') args = parser.parse_args() IDF_PATH = os.environ['IDF_PATH']