forked from tcsh-org/tcsh
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
49 lines (44 loc) · 2.16 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
# vim: se expandtab ts=4 sw=2 ai
trigger: none
#- 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)
copy system\win32 config.h
nmake -f win32\makefile.win32 FASTBUILD=1
for /f "usebackq tokens=3" %%i in (`findstr REV patchlevel.h`) do set TCSH_REV=%%i
for /f "usebackq tokens=3" %%j in (`findstr VERS patchlevel.h`) do set TCSH_VERS=%%j
for /f "usebackq tokens=3" %%k in (`findstr PATCHLEVEL patchlevel.h`) do set TCSH_PATCHLEVEL=%%k
echo "##vso[task.setvariable variable=BuildTitle]%TCSH_REV%.%TCSH_VERS%.%TCSH_PATCHLEVEL%"
displayName: Build
# - task: PublishPipelineArtifact@1
# inputs:
# targetPath: '$(System.DefaultWorkingDirectory)/tcsh-x64.exe'
# artifact: 'binary'
# publishLocation: 'pipeline'
- task: GitHubRelease@0
inputs:
gitHubConnection: github.com_amoldeshpande
repositoryName: $(Build.Repository.Name)
#action: 'create' # Options: create, edit, delete
#target: # Required when action == Create || Action == Edit
tagSource: 'manual' # Required when action == Create# Options: auto, manual
#tagPattern: # Optional
tag: $(Build.BuildNumber) # Required when action == Edit || Action == Delete || TagSource == Manual
title: $(BuildTitle) Release from $(Build.SourceBranchName) # Optional
#releaseNotesSource: 'file' # Optional. Options: file, input
#releaseNotesFile: # Optional
#releaseNotes: # Optional
assets: '$(System.DefaultWorkingDirectory)/tcsh-x64.exe' # Optional
#assetUploadMode: 'delete' # Optional. Options: delete, replace
#isDraft: true # Optional
#isPreRelease: false # Optional
#addChangeLog: true # Optional
#compareWith: 'lastFullRelease' # Required when addChangeLog == True. Options: lastFullRelease, lastRelease, lastReleaseByTag
#releaseTag: # Required when compareWith == LastReleaseByTag