From 81c12fb693d2835627ee2d41fe3223ebb50c0978 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Mon, 30 Oct 2023 16:34:37 -0500 Subject: [PATCH] Ensure generated code is present --- .github/workflows/analyzers.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/analyzers.yml b/.github/workflows/analyzers.yml index c0cf4b7b..d734f881 100644 --- a/.github/workflows/analyzers.yml +++ b/.github/workflows/analyzers.yml @@ -142,6 +142,12 @@ jobs: run: | cmake -B build -DCMAKE_CONFIGURATION_TYPES=${{ matrix.config }} + # Compile deps before initializing codeql, to avoid unnecessary analysis. + # and for iwyu and clang-analayzer, SDL2 apparently generates some code at build time, which breaks the analyzers if we don't compile + - name: Compile Dependencies + run: | + cmake --build build --parallel --config ${{ matrix.config }} --target compile-osp-magnum-deps compile-test-deps + - name: Initialize MSVC Code Analysis uses: microsoft/msvc-code-analysis-action@v0.1.1 # Provide a unique ID to access the sarif output path