-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
51 lines (42 loc) · 1.34 KB
/
azure-pipelines.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
resources:
repositories:
- repository: cli11
type: github
endpoint: gh
name: cliutils/cli11
ref: refs/tags/v2.2.0
variables:
- group: NuGet
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
displayName: "Cloning build-nuget-cli11"
- checkout: cli11
displayName: "Cloning cli11"
- task: CMake@1
displayName: "Making CLI11"
inputs:
workingDirectory: '$(System.DefaultWorkingDirectory)'
cmakeArgs: '-DCMAKE_INSTALL_PREFIX="./build-nuget-cli11/" -DCLI11_INSTALL=ON -DCLI11_SINGLE_FILE=ON -DCLI11_BUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -B "./BUILD" ./cli11'
- task: CMake@1
displayName: "Building CLI11"
inputs:
workingDirectory: '$(System.DefaultWorkingDirectory)'
cmakeArgs: '--build "./BUILD"'
- task: CMake@1
displayName: "Installing CLI11"
inputs:
workingDirectory: '$(System.DefaultWorkingDirectory)'
cmakeArgs: '--install "./BUILD"'
- task: NuGetCommand@2
displayName: "Packaging NuGet Pkg"
inputs:
command: 'pack'
packagesToPack: './build-nuget-cli11/cli11.nuspec'
packDestination: '$(System.DefaultWorkingDirectory)'
versioningScheme: 'off'
- script: nuget push ./*.nupkg -src https://api.nuget.org/v3/index.json -ApiKey $(nuget-apikey)
displayName: "Pushing NuGet Pkg"