sociallydistant/.gitlab-ci.yml
Ritchie Frodomar ea547fdfbd Fix improper CLU arguments to dotnet nuget add source
Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com>
2024-08-21 21:26:11 -04:00

33 lines
1.1 KiB
YAML

stages:
- build
- deploy
dco_check:
stage: build
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 -n 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 -n 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