xDS API Working Group (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

58 lines
1.2 KiB

trigger:
branches:
include:
- 'main'
tags:
include:
- 'v*'
jobs:
- job: CI
pool:
vmImage: 'ubuntu-latest'
container: envoyproxy/envoy-build-ubuntu@sha256:b4fe088084579339ae8f7a44af899bbebd86a290af56e5ab7cc85ca99a09499c
steps:
- task: CacheBeta@1
inputs:
key: './WORKSPACE | ./.bazel* | **/*.bzl'
path: $(Agent.TempDirectory)/tmp
- bash: ci/check.sh
env:
TEST_TMPDIR: $(Agent.TempDirectory)/tmp
- bash: tools/generate_lang_files_from_protos.py && test -z "$(git status --porcelain)"
env:
TEST_TMPDIR: $(Agent.TempDirectory)/tmp
- job: go_build
pool:
vmImage: 'ubuntu-latest'
steps:
- task: GoTool@0
displayName: "Install Go"
inputs:
version: '1.20.2'
- task: Go@0
displayName: "go mod download"
inputs:
command: 'custom'
customCommand: 'mod'
arguments: 'download'
workingDirectory: 'go/'
- task: Go@0
displayName: "go mod verify"
inputs:
command: 'custom'
customCommand: 'mod'
arguments: 'verify'
workingDirectory: 'go/'
- task: Go@0
displayName: "go build ./..."
inputs:
command: 'build'
arguments: '-v ./...'
workingDirectory: 'go/'