diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,3 @@ -image: mcr.microsoft.com/dotnet/sdk:3.1-focal stages: - build @@ -7,6 +6,14 @@ 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 @@ -14,6 +21,7 @@ - dotnet build isometric-park-fna-core.sln -f netcoreapp3.1 -c Release - cp -r fnalibs/lib64 isometric-park-fna/bin/Release/ - cd isometric-park-fna/bin/Release/netcoreapp3.1; ls "../../../../fnalibs/lib64" + - apt-get update - apt install -y xorg-dev libglu1-mesa libgl1-mesa-dev xvfb libxinerama1 libxcursor1 - LD_LIBRARY_PATH="../../../../fnalibs/lib64" DYLD_LIBRARY_PATH="../../../../fnalibs/osx" xvfb-run -a -s "-screen 0 1400x900x24 +extension RANDR" -- dotnet ./isometric-park-fna.dll & - sleep 5; xwd -root -out screenshot.xwd @@ -22,3 +30,4 @@ paths: - screenshot.xwd expire_in: 1 week + image: mcr.microsoft.com/dotnet/sdk:3.1-focal