From ae206b58917fc8906f4349ea1a5a657a864d5a15 Mon Sep 17 00:00:00 2001 From: apple1417 Date: Sat, 9 Dec 2023 18:13:26 +1300 Subject: [PATCH] remove `.modmap`s from compile commands --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 67039ec..43e6866 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -211,6 +211,13 @@ jobs: working-directory: ${{ env.GITHUB_WORKSPACE }} run: cmake . --preset ${{ matrix.preset }} -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On + - name: Remove `.modmap`s from compile commands + run: | + (Get-Content "out\build\${{ matrix.preset }}\compile_commands.json") ` + -replace "@CMakeFiles.+?\.modmap", "" ` + | Set-Content ` + -Path "out\build\${{ matrix.preset }}\compile_commands.json" + - name: Run clang-tidy working-directory: ${{ env.GITHUB_WORKSPACE }} run: |