Skip to content

Commit

Permalink
fix yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-zhenhua committed Apr 26, 2024
1 parent 91781e3 commit da9dda0
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions eng/pipelines/armstrong-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,15 @@ jobs:
pool:
name: azsdk-pool-mms-ubuntu-2204-general
vmImage: ubuntu-22.04

# refer to https://github.com/MicrosoftDocs/pipelines-go/blob/main/azure-pipelines.yml
variables:
GOBIN: '$(GOPATH)/bin' # Go binaries path
GOROOT: '/usr/local/go1.22.2' # Go installation path
GOPATH: '$(system.defaultWorkingDirectory)/gopath' # Go workspace path
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' # Path to the module's code

steps:
- task: GoTool@0
inputs:
version: '1.22.2'

- script: |
mkdir -p '$(GOBIN)'
mkdir -p '$(GOPATH)/pkg'
mkdir -p '$(modulePath)'
shopt -s extglob
shopt -s dotglob
mv !(gopath) '$(modulePath)'
echo '##vso[task.prependpath]$(GOBIN)'
echo '##vso[task.prependpath]$(GOROOT)/bin'
displayName: 'Set up the Go workspace'
echo '##vso[task.prependpath]$(HOME)/go/bin'
displayName: 'Set Environment Variables'
- script: |
go version
Expand Down

0 comments on commit da9dda0

Please sign in to comment.