forked from sochix/TLSharp
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gitlab-ci.yml
37 lines (31 loc) · 935 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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: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:20.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