From 41b5f454a8621461d32a0037e58bda0e4f56aaf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 2 Jan 2023 19:07:22 +0100 Subject: [PATCH] release-windows: compile misra executable --- .github/workflows/release-windows.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml index 45ba86391..eccd4e8da 100644 --- a/.github/workflows/release-windows.yml +++ b/.github/workflows/release-windows.yml @@ -104,11 +104,19 @@ jobs: - name: Build CLI x64 release configuration using MSBuild run: msbuild -m cppcheck.sln -t:cli -p:Configuration=Release-PCRE -p:Platform=x64 || exit /b !errorlevel! + - name: Compile misra.py executable + run: | + pip install -U pyinstaller || exit /b !errorlevel! + cd addons || exit /b !errorlevel! + pyinstaller --hidden-import xml --hidden-import xml.etree --hidden-import xml.etree.ElementTree misra.py || exit /b !errorlevel! + del *.spec || exit /b !errorlevel! + - name: Collect files run: | move Build\gui win_installer\files || exit /b !errorlevel! mkdir win_installer\files\addons || exit /b !errorlevel! copy addons\*.* win_installer\files\addons || exit /b !errorlevel! + copy addons\dist\misra\*.* win_installer\files\addons || exit /b !errorlevel! mkdir win_installer\files\cfg || exit /b !errorlevel! copy cfg\*.cfg win_installer\files\cfg || exit /b !errorlevel! :: "platforms" is a folder used by Qt as well so it already exists