Fixed cppcheck workflow on Windows

This commit is contained in:
SChernykh
2022-05-25 19:15:39 +02:00
parent 055b5e2256
commit 32bb318af4
2 changed files with 13 additions and 5 deletions

View File

@@ -27,17 +27,25 @@ jobs:
cppcheck-windows:
runs-on: windows-latest
runs-on: windows-2022
steps:
- name: Install cppcheck
run: choco install cppcheck
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Checkout cppcheck
uses: actions/checkout@v3
with:
repository: danmar/cppcheck
path: cppcheck-main
- name: Build cppcheck
run: |
cd cppcheck-main
& "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Msbuild\\Current\\Bin\\amd64\\msbuild.exe" /m /p:Configuration=Release /p:Platform=x64
- name: Setup cmake
uses: lukka/get-cmake@latest