This commit is contained in:
SteVen Batten 2021-08-31 11:58:30 -07:00
Родитель a95da66027
Коммит e66a5944dd
1 изменённых файлов: 16 добавлений и 6 удалений

Просмотреть файл

@ -3,7 +3,10 @@
# Add steps that test, save build artifacts, deploy, and more: # Add steps that test, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/go # https://docs.microsoft.com/azure/devops/pipelines/languages/go
trigger: none trigger:
tags:
include:
- v*
variables: variables:
- name: skipComponentGovernanceDetection - name: skipComponentGovernanceDetection
@ -23,11 +26,6 @@ steps:
go build -v -o "$(Build.BinariesDirectory)\\vscode-winsta11er-arm64.exe" -ldflags -H=windowsgui go build -v -o "$(Build.BinariesDirectory)\\vscode-winsta11er-arm64.exe" -ldflags -H=windowsgui
displayName: Build arm64 displayName: Build arm64
- powershell: |
$env:GOARCH="386"
go build -v -o "$(Build.BinariesDirectory)\\vscode-winsta11er-ia32.exe" -ldflags -H=windowsgui
displayName: Build x86
- powershell: | - powershell: |
$env:GOARCH="amd64" $env:GOARCH="amd64"
go build -v -o "$(Build.BinariesDirectory)\\vscode-winsta11er-x64.exe" -ldflags -H=windowsgui go build -v -o "$(Build.BinariesDirectory)\\vscode-winsta11er-x64.exe" -ldflags -H=windowsgui
@ -91,3 +89,15 @@ steps:
MaxConcurrency: '50' MaxConcurrency: '50'
MaxRetryAttempts: '5' MaxRetryAttempts: '5'
- task: GitHubRelease@1
inputs:
gitHubConnection: 'Microsoft'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
tagPattern: 'v*'
releaseNotesSource: 'inline'
assets: '$(Build.BinariesDirectory)/*.exe'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'