update windows.yml

This commit is contained in:
MihailRis 2025-12-23 23:27:12 +03:00
parent 1940fa7fa4
commit 327f99891a

View file

@ -32,18 +32,18 @@ jobs:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg VCPKG_ROOT: ${{ github.workspace }}/vcpkg
run: | run: |
cmake --preset default-vs-msvc-windows cmake --preset default-vs-msvc-windows
cmake --build --preset default-vs-msvc-windows --config Release cmake --build --preset default-vs-msvc-windows --config RelWithDebInfo
- name: Run tests - name: Run tests
run: ctest --preset default-vs-msvc-windows run: ctest --preset default-vs-msvc-windows
- name: Run engine tests - name: Run engine tests
run: | run: |
build/vctest/Release/vctest.exe -e build/Release/VoxelEngine.exe -d dev/tests -u build build/vctest/RelWithDebInfo/vctest.exe -e build/RelWithDebInfo/VoxelEngine.exe -d dev/tests -u build
timeout-minutes: 1 timeout-minutes: 1
- name: Package for Windows - name: Package for Windows
run: | run: |
mkdir packaged mkdir packaged
cp -r build/Release/* packaged/ cp -r build/RelWithDebInfo/* packaged/
cp build/vctest/Release/vctest.exe packaged/ cp build/vctest/RelWithDebInfo/vctest.exe packaged/
cp C:/Windows/System32/msvcp140.dll packaged/msvcp140.dll cp C:/Windows/System32/msvcp140.dll packaged/msvcp140.dll
mv packaged/VoxelEngine.exe packaged/VoxelCore.exe mv packaged/VoxelEngine.exe packaged/VoxelCore.exe
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}