sociallydistant/.gitlab-ci.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2024-07-21 20:39:45 -04:00
stages:
- build
- deploy
2024-07-21 20:39:45 -04:00
dco_check:
stage: build
2024-07-21 21:06:23 -04:00
script: >
echo $CI_COMMIT_MESSAGE | grep "Signed-off-by: $CI_COMMIT_AUTHOR"
setup_mgfxc:
stage: build
script: >
./mgfxc-wine-setup.sh
# Makes sure the base game compiles.
build_base:
stage: build
script: >
if (dotnet nuget list source | grep monogame-socially-distant);
then
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
dotnet build -c release src
publish_linux:
stage: deploy
script: >
mkdir bin;
if (dotnet nuget list source | grep monogame-socially-distant);
then
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
dotnet publish src/SociallyDistant -r linux-x64 -c release --self-contained -o bin/linux-x64;
artifacts:
name: socially-distant-linux-amd64-release
paths:
- bin/linux-x64