From 02e00f36a92059d43d1cc0d5dbe201591f9a0da7 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 7 Feb 2019 09:10:52 +0100 Subject: [PATCH] fix bazel installer --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6e941066..1203797a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -76,13 +76,13 @@ jobs: workingDirectory: '$(system.defaultWorkingDirectory)' displayName: 'Fetch sources' - script: | - curl -L -O https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VER}/bazel-${BAZEL_VER}-installer-linux-x86_64.sh - chmod +x bazel-${BAZEL_VER}-installer-linux-x86_64.sh - ./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 + ./bazel-installer.sh --user workingDirectory: '$(system.defaultWorkingDirectory)' displayName: 'Install Bazel' - script: | cd ./src/v2ray.com/core - 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)' displayName: 'Build Binaries'