-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
34 lines (29 loc) · 1.09 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
# vim:se expandtab ts=4 sw=2 ai
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
buildPlatform: x64
buildConfiguration: 'Release'
steps:
- script: |
for /f "usebackq tokens=*" %%l in (`"c:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath`) do set bar=%%l
call "%bar%"\Common7\Tools\VsDevCmd.bat -arch=$(BuildPlatform)
call bootstrap.bat
call build_w32.bat
for /f "usebackq tokens=3" %%l in (`findstr VERSION src\\config.h.W32`) do for /f "delims=" %%x in (%%l) do echo "##vso[task.setvariable variable=BuildTitle]%%x"
displayName: Build
# - task: PublishPipelineArtifact@1
# inputs:
# targetPath: '$(System.DefaultWorkingDirectory)/WinRel/gnumake.exe
# artifact: 'binary'
# publishLocation: 'pipeline'
- task: GitHubRelease@0
inputs:
gitHubConnection: github.com_amoldeshpande
repositoryName: $(Build.Repository.Name)
tagSource: 'manual'
tag: $(Build.BuildNumber)
assets: $(System.DefaultWorkingDirectory)/WinRel/gnumake.exe
title: $(BuildTitle)