1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-07-14 05:00:13 -04:00
Files
v2fly/azure-pipelines.yml

55 lines
1.6 KiB
YAML
Raw Normal View History

2019-02-06 23:25:58 +01:00
trigger:
batch: true
2019-02-06 23:28:18 +01:00
branches:
include:
2020-07-23 12:54:26 +08:00
- master
- dev*
- refs/tags/*
2019-02-06 23:28:18 +01:00
2020-07-23 12:54:26 +08:00
pool:
vmImage: "ubuntu-latest"
2019-02-06 23:25:58 +01:00
2020-07-23 12:54:26 +08:00
variables:
- group: GithubToken
2019-02-06 23:25:58 +01:00
2020-07-23 12:54:26 +08:00
steps:
2019-04-15 18:39:47 +08:00
- checkout: self
2019-02-06 23:25:58 +01:00
- task: GoTool@0
inputs:
2020-10-15 11:07:54 +00:00
version: "1.15.3"
2019-02-06 23:25:58 +01:00
- script: |
go version
go mod download
workingDirectory: $(system.defaultWorkingDirectory)
displayName: "Fetch sources"
2019-02-07 12:38:44 +01:00
- script: |
bazel build --action_env=PATH=$PATH --action_env=GOPATH=$(go env GOPATH) --action_env=GOCACHE=$(go env GOCACHE) --action_env=SPWD=$(pwd) --spawn_strategy local //release:all
workingDirectory: $(system.defaultWorkingDirectory)
displayName: "Build Binaries"
2019-02-07 12:38:44 +01:00
- script: |
2019-04-16 16:09:08 +08:00
echo $RELEASE_TAG
2019-04-16 12:26:36 +08:00
./release/bleedingrelease.sh
workingDirectory: $(system.defaultWorkingDirectory)
displayName: "Generate Bleeding Edge Release"
2019-04-16 12:26:36 +08:00
env:
WORKDIR: $(system.defaultWorkingDirectory)
2019-04-16 12:26:36 +08:00
GITHUB_TOKEN: $(GITHUB_TOKEN)
PRERELEASE: true
2019-04-16 18:45:36 +08: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 15:03:29 +08:00
- script: |
echo $RELEASE_TAG
./release/tagrelease.sh
workingDirectory: $(system.defaultWorkingDirectory)
displayName: "Generate Tag Release"
2019-10-30 15:03:29 +08:00
env:
WORKDIR: $(system.defaultWorkingDirectory)
2019-10-30 15:03:29 +08:00
GITHUB_TOKEN: $(GITHUB_TOKEN)
PRERELEASE: true
RELEASE_TAG: unstable-$(Build.SourceVersion)
RELEASE_SHA: $(Build.SourceVersion)
2019-10-30 15:03:29 +08:00
TRIGGER_REASON: $(Build.SourceBranch)