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
|
|
|
|
|
|
|
|
build_base:
|
|
|
|
stage: build
|
|
|
|
script: >
|
2024-07-21 22:13:54 -04:00
|
|
|
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
|
2024-07-21 21:53:50 -04:00
|
|
|
artifacts:
|
2024-07-21 22:13:54 -04:00
|
|
|
name: socially-distant-win64-release
|
2024-07-21 21:53:50 -04:00
|
|
|
paths:
|
2024-07-21 22:13:54 -04:00
|
|
|
- bin/windows-x64
|
|
|
|
|
|
|
|
|
|
|
|
|