forked from EvergineTeam/Vulkan.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
69 lines (59 loc) · 1.64 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# CI pipeline. Publish is done automatially in GitHub Actions
name: $(Date:yyyy)$(Date:.M)$(Date:.d)$(Rev:.r)-rolling
variables:
- name: buildConfiguration
value: Release
- name: nugetOutputPath
value: $(Build.StagingDirectory)/nupkgs
trigger:
batch: true
branches:
include:
- master
pr:
autoCancel: true
branches:
include:
- master
pool:
vmImage: windows-2022
jobs:
- job: "BuildNuGets"
displayName: "Build NuGet packages"
workspace:
clean: outputs
variables:
nugetOutputPath: "$(Build.StagingDirectory)/nupkgs"
steps:
- checkout: self
clean: true
- task: UseDotNet@2
displayName: Check .NETCore SDK
inputs:
version: 3.1.x
- task: UseDotNet@2
displayName: "Check .NET SDK"
inputs:
version: 6.x
- task: NuGetToolInstaller@1
displayName: Check NuGet client
inputs:
versionSpec: 6.x
checkLatest: true
- task: PowerShell@2
displayName: Generate Bindings
inputs:
targetType: filePath
filePath: Generate-Bindings.ps1
arguments: -BuildConfiguration $(buildConfiguration)
- task: PowerShell@2
displayName: Generate NuGet packages
inputs:
targetType: filePath
filePath: Generate-NuGets.ps1
arguments: -Version $(Build.BuildNumber) -Outputfolder $(nugetOutputPath) -BuildConfiguration $(buildConfiguration)
- task: PublishBuildArtifacts@1
displayName: "Publish Artifact: NuGets"
inputs:
PathtoPublish: $(nugetOutputPath)
ArtifactName: NuGets