2018-12-11 17:01:04 +02:00
|
|
|
jobs:
|
|
|
|
- job: build_geosite
|
|
|
|
timeoutInMinutes: 30
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-16.04'
|
|
|
|
|
|
|
|
variables:
|
|
|
|
GOPATH: '$(system.defaultWorkingDirectory)'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout: none
|
|
|
|
- task: GoTool@0
|
|
|
|
inputs:
|
|
|
|
version: '1.11.2'
|
|
|
|
- script: |
|
|
|
|
go version
|
|
|
|
go get -v -t -d github.com/v2ray/domain-list-community/...
|
2018-12-11 17:03:53 +02:00
|
|
|
go run ./src/github.com/v2ray/domain-list-community/main.go
|
2018-12-11 17:01:04 +02:00
|
|
|
workingDirectory: '$(system.defaultWorkingDirectory)'
|
|
|
|
displayName: 'Generate'
|
|
|
|
- task: CopyFiles@2
|
|
|
|
inputs:
|
|
|
|
sourceFolder: '$(system.defaultworkingdirectory)'
|
|
|
|
contents: 'dlc.dat'
|
|
|
|
targetFolder: '$(build.artifactStagingDirectory)'
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: 'Publish Artifact'
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: '$(build.artifactstagingdirectory)'
|