From de1b97a0ce8b2c761f436aa2717f2b04c093e045 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 28 Jul 2025 23:23:31 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Small=20checkout=20for=20each=20tes?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-build-tests.yml | 7 ------- buildroot/bin/use_example_configs | 10 +++++++--- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-build-tests.yml b/.github/workflows/ci-build-tests.yml index 34dbb4fd23..b3b0c94243 100644 --- a/.github/workflows/ci-build-tests.yml +++ b/.github/workflows/ci-build-tests.yml @@ -209,13 +209,6 @@ jobs: sudo apt-get install libsdl2-net-dev sudo apt-get install libglm-dev - - name: Checkout Configurations - uses: actions/checkout@v4 - with: - repository: MarlinFirmware/Configurations - ref: ${{ env.CONFIG_BRANCH }} - path: ConfigurationsRepo - - name: Run ${{ matrix.test-platform }} Tests run: | make tests-single-ci TEST_TARGET=${{ matrix.test-platform }} diff --git a/buildroot/bin/use_example_configs b/buildroot/bin/use_example_configs index 9a3a7a34d4..ff2b0ca689 100755 --- a/buildroot/bin/use_example_configs +++ b/buildroot/bin/use_example_configs @@ -17,8 +17,12 @@ import os, subprocess, sys, urllib.request from pathlib import Path +DEBUGGING = False CONFIG_FILES = ("Configuration.h", "Configuration_adv.h", "_Bootscreen.h", "_Statusscreen.h") +def debug_print(s): + if DEBUGGING: print(s) + def get_current_branch(): try: result = subprocess.run(['git', 'branch'], capture_output=True, text=True, check=True) @@ -52,10 +56,10 @@ def copy_config_files(branch, config_path, dest_dir): src_file = src_dir / fname if src_file.exists(): dest_file = dest_dir / fname - print(f"Copying {src_file} to {dest_file}") + debug_print(f"Copying {src_file} to {dest_file}") dest_file.write_bytes(src_file.read_bytes()) else: - print(f"{fname} not found in {src_dir}") + debug_print(f"{fname} not found in {src_dir}") def fetch_config_files(branch, config_path, dest_dir): config_path_url = config_path.replace(' ', '%20') @@ -65,7 +69,7 @@ def fetch_config_files(branch, config_path, dest_dir): url = f"{base_url}/{file}" dest_file = dest_dir / file if os.getenv('DEBUG', '0') == '1': - print(f"Fetching {file} from {url} to {dest_file}") + debug_print(f"Fetching {file} from {url} to {dest_file}") try: urllib.request.urlretrieve(url, dest_file)