diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 5241840..c81f5b7 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -42,12 +42,11 @@ jobs: - name: Compile yaml-cpp if not cached if: steps.cache-yaml-cpp.outputs.cache-hit != 'true' run: | - & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Launch-VsDevShell.ps1" - mkdir yaml-cpp/build | Out-Null - cd yaml-cpp/build - cmake -G Ninja -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DYAML_BUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release .. - ninja yaml-cpp.dll - copy yaml-cpp.dll,yaml-cpp.lib .. + cd yaml-cpp + cmake -B build -DYAML_BUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release + cmake --build build --parallel --config Release + copy build\util\Release\yaml-cpp.dll .. + copy build\util\Release\yaml-cpp.lib .. - name: Cache DFTRES id: cache-dftres uses: actions/cache@v4