diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ + +stages: + - build + +build-debug: + stage: build + script: + - dotnet build isometric-park-fna-core.sln -f netcoreapp3.1 + image: mcr.microsoft.com/dotnet/sdk:3.1-focal + + +build-release-windows: + stage: build + script: + - dotnet build isometric-park-fna-core.sln -f netcoreapp3.1 -c Release + image: mcr.microsoft.com/dotnet/sdk:3.1 + +build-release: + stage: build + script: + - dotnet build isometric-park-fna-core.sln -f netcoreapp3.1 -c Release + artifacts: + paths: + - screenshot.xwd + expire_in: 1 week + image: mcr.microsoft.com/dotnet/sdk:3.1-focal diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -22,10 +22,14 @@ run-core-debug: - cd isometric-park-fna/bin/Debug/netcoreapp3.1; LD_LIBRARY_PATH="../../../fnalibs/lib64" DYLD_LIBRARY_PATH="../../../../fnalibs/osx" dotnet ./isometric-park-fna.dll + cd isometric-park-fna/bin/Debug/netcoreapp3.1; LD_LIBRARY_PATH="../../../../fnalibs/lib64" DYLD_LIBRARY_PATH="../../../../fnalibs/osx" dotnet ./isometric-park-fna.dll run-core-release: - cd isometric-park-fna/bin/Release/netcoreapp3.1; LD_LIBRARY_PATH="../../../fnalibs/lib64" DYLD_LIBRARY_PATH="../../../../fnalibs/osx" dotnet ./isometric-park-fna.dll + cd isometric-park-fna/bin/Release/netcoreapp3.1; LD_LIBRARY_PATH="../../../../fnalibs/lib64" DYLD_LIBRARY_PATH="../../../../fnalibs/osx" dotnet ./isometric-park-fna.dll + + +run-core-release-xvfb: + cd isometric-park-fna/bin/Release/netcoreapp3.1; LD_LIBRARY_PATH="../../../../fnalibs/lib64" DYLD_LIBRARY_PATH="../../../../fnalibs/osx" xvfb-run -a -s "-screen 0 1400x900x24 +extension RANDR +extension GLX +extension RENDER" -- dotnet ./isometric-park-fna.dll run-framework-release: diff --git a/isometric-park-fna/Components/GameStateComponent.cs b/isometric-park-fna/Components/GameStateComponent.cs new file mode 100644 --- /dev/null +++ b/isometric-park-fna/Components/GameStateComponent.cs @@ -0,0 +1,12 @@ + + +using Microsoft.Xna.Framework; + +using Encompass; + +namespace isometricparkfna.Components { + + public struct GameStateComponent : IComponent { + public bool isPlaying; + } +}