v2ray-core/azure-pipelines.yml

63 lines
1.7 KiB
YAML
Raw Normal View History

2019-02-06 22:25:58 +00:00
trigger:
batch: true
2019-02-06 22:28:18 +00:00
branches:
include:
2020-07-23 04:54:26 +00:00
- master
- dev*
- refs/tags/*
2019-02-06 22:28:18 +00:00
2020-07-23 04:54:26 +00:00
pool:
vmImage: 'ubuntu-latest'
2019-02-06 22:25:58 +00:00
2020-07-23 04:54:26 +00:00
variables:
- group: GithubToken
- name: GOPATH
value: '$(system.defaultWorkingDirectory)/gopath'
- name: BAZEL_VER
2020-09-09 10:31:57 +00:00
value: '3.5.0'
2019-02-06 22:25:58 +00:00
2020-07-23 04:54:26 +00:00
steps:
2019-04-15 10:39:47 +00:00
- checkout: self
2019-02-06 22:25:58 +00:00
- task: GoTool@0
inputs:
2020-09-10 15:35:07 +00:00
version: '1.15.2'
2019-02-06 22:25:58 +00:00
- script: |
go version
mkdir -p $GOPATH/src/v2ray.com
ln -s $(pwd) $GOPATH/src/v2ray.com/core
ls -lah $GOPATH/src/v2ray.com/core
cd $GOPATH/src/v2ray.com/core || exit 1
go mod download
workingDirectory: '$(system.defaultWorkingDirectory)'
2019-02-06 22:25:58 +00:00
displayName: 'Fetch sources'
2019-02-07 11:38:44 +00:00
- script: |
cd ./src/v2ray.com/core || exit 1
bazel build --action_env=GOPATH=$GOPATH --action_env=PATH=$PATH --action_env=SPWD=$PWD --action_env=GOCACHE=$(go env GOCACHE) --spawn_strategy local //release:all
2019-04-15 10:39:47 +00:00
workingDirectory: '$(GOPATH)'
2019-02-06 22:25:58 +00:00
displayName: 'Build Binaries'
2019-02-07 11:38:44 +00:00
- script: |
cd ./src/v2ray.com/core || exit 1
2019-04-16 08:09:08 +00:00
echo $RELEASE_TAG
2019-04-16 04:26:36 +00:00
./release/bleedingrelease.sh
workingDirectory: '$(GOPATH)'
displayName: 'Generate Bleeding Edge Release'
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
PRERELEASE: true
2019-04-16 10:45:36 +00:00
RELEASE_TAG: unstable-$(Build.SourceVersion)
RELEASE_SHA: $(Build.SourceVersion)
TRIGGER_REASON: $(Build.SourceBranch)
GITHUB_REPO_OWNER: v2fly
GITHUB_REPO_NAME: v2ray-core
2019-10-30 07:03:29 +00:00
- script: |
cd ./src/v2ray.com/core || exit 1
2019-10-30 07:03:29 +00:00
echo $RELEASE_TAG
./release/tagrelease.sh
workingDirectory: '$(GOPATH)'
displayName: 'Generate Tag Release'
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
PRERELEASE: true
RELEASE_TAG: unstable-$(Build.SourceVersion)
TRIGGER_REASON: $(Build.SourceBranch)