ShiftyX1 42dcf7c888
Some checks failed
Build / Build (push) Successful in 9m29s
Build and Release / prepare (push) Successful in 1s
MSVC Build / build-windows (windows-latest) (push) Has been cancelled
Build and Release / build_linux (push) Failing after 43s
Build and Release / build_macos (push) Failing after 11s
Build and Release / build_windows (push) Failing after 14s
Build and Release / publish_release (push) Has been skipped
fix: adapt CI/CD for Gitea compatibility
- Replace upload/download-artifact v4 with v3 (v4 not supported on Gitea)
- Fix ObjectsPool::allocateNew() usage (returns void, not bool)
- Add cmake and build-essential to dependencies
- Update release workflow to use softprops/action-gh-release
2025-12-08 20:09:54 +03:00

54 lines
1.5 KiB
YAML

name: MSVC Build
on:
push:
branches: [ "main", "release-**"]
pull_request:
branches: [ "main", "dev" ]
jobs:
build-windows:
strategy:
matrix:
include:
- os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Bootstrap vcpkg
shell: pwsh
run: |
git clone https://github.com/microsoft/vcpkg.git
${{ github.workspace }}/vcpkg/bootstrap-vcpkg.bat
- name: Configure and build project with CMake and vcpkg
env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
run: |
cmake --preset default-vs-msvc-windows
cmake --build --preset default-vs-msvc-windows --config Release
- name: Run tests
run: ctest --preset default-vs-msvc-windows
- name: Run engine tests
run: |
build/vctest/Release/vctest.exe -e build/Release/VoxelEngine.exe -d dev/tests -u build
timeout-minutes: 1
- name: Package for Windows
run: |
mkdir packaged
cp -r build/Release/* packaged/
cp build/vctest/Release/vctest.exe packaged/
cp C:/Windows/System32/msvcp140.dll packaged/msvcp140.dll
mv packaged/VoxelEngine.exe packaged/VoxelCore.exe
working-directory: ${{ github.workspace }}
- uses: actions/upload-artifact@v3
with:
name: Windows-Build
path: 'packaged/*'