-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
27 lines (25 loc) · 923 Bytes
/
.gitlab-ci.yml
File metadata and controls
27 lines (25 loc) · 923 Bytes
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
stages:
- build
Build:
stage: build
tags:
- windows
- msvs
before_script:
# Add MSBuild.exe to path
- set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin
# Update the CIBuildVersion.cs
- cd ModbusRTUSlaveExampleCSharp
- "echo namespace ModbusExample{static class CIBuildVersion { public const int CIBUILDNUMBER = %CI_PIPELINE_IID%;}} > CIBuildVersion.cs"
- type CIBuildVersion.cs
- cd ..\
script:
# Create the bin directory if it does not exist
- cd ModbusRTUSlaveExampleCSharp
# Restore any nuget or other dependencies needed for the project
- msbuild /t:Restore /p:Configuration=Release /p:Platform="Any CPU"
# Build and package the project in an apk for android
- msbuild /p:Configuration=Release /p:Platform="Any CPU"
artifacts:
paths:
- bin\netcoreapp2.1\ModbusRTUSlaveExampleCSharp.dll