Skip to content

Commit a45d0b8

Browse files
authored
CI: build before analysis to support C++ Modules (#325)
The code analysis action needs .ddi and .modmap files that CMake generates during the build phase (dependency scanning). Without a build step, the action cannot determine module dependencies or pass the correct -interface/-ifcOutput/-reference flags to cl.exe. Add a build step between configure and analysis.
1 parent 6b9aca9 commit a45d0b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
shell: pwsh
4343
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.config }}
4444

45+
- name: Build
46+
shell: pwsh
47+
run: cmake --build build
48+
4549
- name: Run Microsoft Visual C++ Analysis
4650
id: run-analysis
4751
uses: gdr-at-ms/msvc-code-analysis-action@support-cxx-modules

0 commit comments

Comments
 (0)