mirror of https://github.com/v2ray/v2ray-core
move primary dir
parent
d66c3896ed
commit
a59b3510ff
|
@ -50,16 +50,20 @@ jobs:
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'Ubuntu 16.04'
|
vmImage: 'Ubuntu 16.04'
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GOPATH: '$(system.defaultWorkingDirectory)'
|
GOPATH: '$(system.defaultWorkingDirectory)/gopath'
|
||||||
BAZEL_VER: '0.23.0'
|
BAZEL_VER: '0.23.0'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: none
|
- checkout: self
|
||||||
- task: GoTool@0
|
- task: GoTool@0
|
||||||
inputs:
|
inputs:
|
||||||
version: '1.12'
|
version: '1.12'
|
||||||
|
- script: |
|
||||||
|
mkdir gopath
|
||||||
|
displayName: Prepare Environment
|
||||||
|
workingDirectory: '$(system.defaultWorkingDirectory)'
|
||||||
- script: |
|
- script: |
|
||||||
sudo apt-get -y update
|
sudo apt-get -y update
|
||||||
sudo apt-get -y install jq git file pkg-config zip g++ zlib1g-dev unzip python openssl
|
sudo apt-get -y install jq git file pkg-config zip g++ zlib1g-dev unzip python openssl
|
||||||
|
@ -67,26 +71,26 @@ jobs:
|
||||||
- script: |
|
- script: |
|
||||||
go version
|
go version
|
||||||
go get -v -t -d v2ray.com/core/...
|
go get -v -t -d v2ray.com/core/...
|
||||||
workingDirectory: '$(system.defaultWorkingDirectory)'
|
workingDirectory: '$(GOPATH)'
|
||||||
displayName: 'Fetch sources'
|
displayName: 'Fetch sources'
|
||||||
- script: |
|
- script: |
|
||||||
mkdir release
|
mkdir release
|
||||||
cd src
|
cd src
|
||||||
zip -9 -r ../release/src_all.zip * -x '*.git*'
|
zip -9 -r ../release/src_all.zip * -x '*.git*'
|
||||||
workingDirectory: '$(system.defaultWorkingDirectory)'
|
workingDirectory: '$(GOPATH)'
|
||||||
displayName: 'Dump sources'
|
displayName: 'Dump sources'
|
||||||
- script: |
|
- script: |
|
||||||
curl -L -o bazel-installer.sh https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VER}/bazel-${BAZEL_VER}-installer-linux-x86_64.sh
|
curl -L -o bazel-installer.sh https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VER}/bazel-${BAZEL_VER}-installer-linux-x86_64.sh
|
||||||
chmod +x bazel-installer.sh
|
chmod +x bazel-installer.sh
|
||||||
./bazel-installer.sh --user
|
./bazel-installer.sh --user
|
||||||
workingDirectory: '$(system.defaultWorkingDirectory)'
|
workingDirectory: '$(GOPATH)'
|
||||||
displayName: 'Install Bazel'
|
displayName: 'Install Bazel'
|
||||||
- script: |
|
- script: |
|
||||||
cd ./src/v2ray.com/core
|
cd ./src/v2ray.com/core
|
||||||
$HOME/bin/bazel build --action_env=GOPATH=$GOPATH --action_env=PATH=$PATH --action_env=GPG_PASS=${SIGN_KEY_PASS} //release:all
|
$HOME/bin/bazel build --action_env=GOPATH=$GOPATH --action_env=PATH=$PATH --action_env=GPG_PASS=${SIGN_KEY_PASS} //release:all
|
||||||
workingDirectory: '$(system.defaultWorkingDirectory)'
|
workingDirectory: '$(GOPATH)'
|
||||||
displayName: 'Build Binaries'
|
displayName: 'Build Binaries'
|
||||||
- script: |
|
- script: |
|
||||||
cp ./src/v2ray.com/core/bazel-bin/release/*.zip ./release/
|
cp ./src/v2ray.com/core/bazel-bin/release/*.zip ./release/
|
||||||
workingDirectory: '$(system.defaultWorkingDirectory)'
|
workingDirectory: '$(GOPATH)'
|
||||||
displayName: 'Dump Binaries'
|
displayName: 'Dump Binaries'
|
||||||
|
|
Loading…
Reference in New Issue