diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..3a189dc9 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,44 @@ +version: '{build}' +image: Visual Studio 2022 + +# Używamy własnych kroków build +build: off + +# Zmienna z konfiguracją +environment: + CONFIG: RelWithDebInfo + +init: + - cmd: | + echo Build worker: %APPVEYOR_BUILD_WORKER_IMAGE% + ver + +install: + - cmd: | + git submodule update --init --recursive + call setup-ci.bat + +before_build: + - cmd: | + if not exist build mkdir build + cd build + cmake .. -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=%CONFIG% -DPython3_ROOT_DIR=C:/Python314-x64 + +build_script: + - cmd: | + cmake --build . --config %CONFIG% --parallel + cd .. + +after_build: + - cmd: | + echo Copying shaders... + if not exist build\bin\%CONFIG%\shaders mkdir build\bin\%CONFIG%\shaders + xcopy /E /Y shaders build\bin\%CONFIG%\shaders\ + +artifacts: + - path: build\bin\%CONFIG%\*.exe + name: binaries + - path: build\pdb\%CONFIG%\*.pdb + name: symbols + - path: build\bin\%CONFIG%\shaders + name: shaders