From 9cd29c3926d6590db816069a65f79d8aaa4a5f0b Mon Sep 17 00:00:00 2001 From: pifopi Date: Fri, 23 Jan 2026 18:03:05 +0100 Subject: [PATCH] Check for filesystem usage --- .github/workflows/cpp-ci-serial-programs.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/cpp-ci-serial-programs.yml b/.github/workflows/cpp-ci-serial-programs.yml index 140bc1362..f61c60556 100644 --- a/.github/workflows/cpp-ci-serial-programs.yml +++ b/.github/workflows/cpp-ci-serial-programs.yml @@ -37,6 +37,18 @@ jobs: with: path: 'Arduino-Source' submodules: 'recursive' + - name: Run checks for banned std::filesystem usage + if: startsWith(matrix.os, 'ubuntu') + run: | + cd Arduino-Source + matches=$(grep --recursive --exclude='Filesystem.h' 'filesystem' Common/ SerialPrograms/) + if [ -n "$matches" ] + then + echo "Banned usage of std::filesystem found in:" + echo "$matches" + exit 1 + fi + echo "No banned usage of std::filesystem found" - uses: actions/checkout@v6 with: repository: 'PokemonAutomation/CommandLineTests'