mirror of
https://github.com/sochix/TLSharp.git
synced 2026-01-01 22:39:59 +01:00
This pipeline doesn't come with Mono out-of-the-box like the GH-Actions one, so then we need to install mono ourselves (and there are 3 different ways to do it).
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
variables:
|
|
NUGET_540_URL: https://dist.nuget.org/win-x86-commandline/v5.4.0/nuget.exe
|
|
NUGET_451_URL: https://dist.nuget.org/win-x86-commandline/v4.5.1/nuget.exe
|
|
|
|
before_script:
|
|
- apt update
|
|
# needed to download NuGet
|
|
- apt install -y curl
|
|
|
|
stages:
|
|
- build
|
|
|
|
stockmono_build:
|
|
image: ubuntu:18.04
|
|
stage: build
|
|
script:
|
|
# https://askubuntu.com/a/1013396
|
|
- DEBIAN_FRONTEND=noninteractive apt install -y mono-complete mono-xbuild fsharp
|
|
- mono --version
|
|
|
|
- curl -o nuget.exe $NUGET_451_URL
|
|
- mono nuget.exe restore src/TgSharp.sln
|
|
- xbuild src/TgSharp.Core/TgSharp.Core.csproj
|
|
|
|
stocknewmono_build:
|
|
image: ubuntu:20.04
|
|
stage: build
|
|
script:
|
|
# https://askubuntu.com/a/1013396
|
|
- DEBIAN_FRONTEND=noninteractive apt install -y mono-complete mono-xbuild fsharp
|
|
- mono --version
|
|
|
|
- curl -o nuget.exe $NUGET_540_URL
|
|
- mono nuget.exe restore src/TgSharp.sln
|
|
- xbuild src/TgSharp.Core/TgSharp.Core.csproj
|
|
|
|
newmono_build:
|
|
image: ubuntu:18.04
|
|
stage: build
|
|
artifacts:
|
|
paths:
|
|
- bin/*.zip
|
|
expire_in: 50days
|
|
script:
|
|
- ./scripts/install_mono_from_microsoft_deb_packages.sh
|
|
|
|
- curl -o nuget.exe $NUGET_540_URL
|
|
- mono nuget.exe restore src/TgSharp.sln
|
|
- msbuild src/TgSharp.Core/TgSharp.Core.csproj
|