Skip to content

Commit acfea32

Browse files
committed
release-windows.yml: generate cppcheck-htmlreport binary
1 parent f5e3cd6 commit acfea32

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/release-windows.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,22 @@ jobs:
8989
- name: Build CLI x64 release configuration using MSBuild
9090
run: msbuild -m cppcheck.sln -t:cli -p:Configuration=Release-PCRE -p:Platform=x64 || exit /b !errorlevel!
9191

92-
- name: Compile misra.py executable
92+
- name: Install missing Python packages
9393
run: |
9494
pip install -U pyinstaller || exit /b !errorlevel!
95+
96+
- name: Compile misra.py executable
97+
run: |
9598
cd addons || exit /b !errorlevel!
9699
pyinstaller --hidden-import xml --hidden-import xml.etree --hidden-import xml.etree.ElementTree misra.py || exit /b !errorlevel!
97100
del *.spec || exit /b !errorlevel!
98101
102+
- name: Compile cppcheck-htmlreport executable
103+
run: |
104+
cd htmlreport || exit /b !errorlevel!
105+
pyinstaller cppcheck-htmlreport || exit /b !errorlevel!
106+
del *.spec || exit /b !errorlevel!
107+
99108
- name: Collect files
100109
run: |
101110
@echo on
@@ -107,6 +116,7 @@ jobs:
107116
xcopy /s gui\help win_installer\files\help || exit /b !errorlevel!
108117
del win_installer\files\translations\*.qm || exit /b !errorlevel!
109118
move build\gui\*.qm win_installer\files\translations || exit /b !errorlevel!
119+
copy htmlreport\dist\cppcheck-htmlreport\*.* win_installer\files || exit /b !errorlevel!
110120
:: copy libcrypto-3-x64.dll and libssl-3-x64.dll
111121
copy %RUNNER_WORKSPACE%\Qt\Tools\OpenSSLv3\Win_x64\bin\lib*.dll win_installer\files || exit /b !errorlevel!
112122

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,5 @@ compile_commands.json
117117
# pyinstaller output
118118
/addons/dist
119119
/addons/misra.spec
120+
/htmlreport/cppcheck-htmlreport.spec
121+
/htmlreport/dist

0 commit comments

Comments
 (0)