sociallydistant/.gitlab-ci.yml

44 lines
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
build_base:
stage: build
script: >
dotnet build -c release src
publish_linux:
stage: deploy
script: >
mkdir bin
dotnet publish src/SociallyDistant -r linux-x64 -c release --self-contained --no-build -o bin/linux-x64
artifacts:
name: socially-distant-linux-amd64-release
paths:
- bin/linux-x64
# Note: The no-build flag is not just an optimization. The runner runs Arch Linux, not Windows.
# So we skip build during publish, otherwise custom MSBuild tasks won't run as a result of Linux trying to run a Windows binary.
publish_windows:
stage: deploy
script: >
mkdir bin
dotnet publish src/SociallyDistant -r win-x64 -c release --no-build --self-contained -o bin/windows-x64
artifacts:
name: socially-distant-win64-release
paths:
- bin/windows-x64