2024-07-21 20:39:45 -04:00
|
|
|
stages:
|
|
|
|
- build
|
2024-07-21 22:13:54 -04:00
|
|
|
- deploy
|
2024-07-21 20:39:45 -04:00
|
|
|
|
|
|
|
dco_check:
|
|
|
|
stage: build
|
2024-07-21 21:06:23 -04:00
|
|
|
script: >
|
2024-07-21 21:53:50 -04:00
|
|
|
echo $CI_COMMIT_MESSAGE | grep "Signed-off-by: $CI_COMMIT_AUTHOR"
|
|
|
|
|
|
|
|
setup_mgfxc:
|
|
|
|
stage: build
|
|
|
|
script: >
|
|
|
|
./mgfxc-wine-setup.sh
|
|
|
|
|
2024-07-21 22:21:06 -04:00
|
|
|
# Makes sure the base game compiles.
|
2024-07-21 21:53:50 -04:00
|
|
|
build_base:
|
|
|
|
stage: build
|
|
|
|
script: >
|
2024-08-21 21:19:56 -04:00
|
|
|
if (dotnet nuget list source | grep monogame-socially-distant);
|
|
|
|
then
|
2024-08-21 21:14:22 -04:00
|
|
|
dotnet nuget remove source monogame-socially-distant
|
|
|
|
fi
|
|
|
|
dotnet nuget add source monogame-socially-distant https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json
|
2024-07-21 22:13:54 -04:00
|
|
|
dotnet build -c release src
|
|
|
|
|
|
|
|
publish_linux:
|
|
|
|
stage: deploy
|
|
|
|
script: >
|
2024-07-21 22:16:35 -04:00
|
|
|
mkdir bin;
|
2024-08-21 21:19:56 -04:00
|
|
|
if (dotnet nuget list source | grep monogame-socially-distant);
|
|
|
|
then
|
2024-08-21 21:14:22 -04:00
|
|
|
dotnet nuget remove source monogame-socially-distant
|
|
|
|
fi
|
|
|
|
dotnet nuget add source monogame-socially-distant https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json
|
2024-07-21 22:41:34 -04:00
|
|
|
dotnet publish src/SociallyDistant -r linux-x64 -c release --self-contained -o bin/linux-x64;
|
2024-07-21 22:13:54 -04:00
|
|
|
artifacts:
|
|
|
|
name: socially-distant-linux-amd64-release
|
|
|
|
paths:
|
|
|
|
- bin/linux-x64
|