download gn from cipd instead of GCS
https://chromium-review.googlesource.com/c/chromium/src/+/1519726
This commit is contained in:
parent
2dc422234a
commit
9cc4cb2934
1 changed files with 7 additions and 3 deletions
|
@ -505,12 +505,16 @@ steps-lint: &steps-lint
|
||||||
name: Download GN Binary
|
name: Download GN Binary
|
||||||
command: |
|
command: |
|
||||||
chromium_revision="$(grep -A1 chromium_version src/electron/DEPS | tr -d '\n' | cut -d\' -f4)"
|
chromium_revision="$(grep -A1 chromium_version src/electron/DEPS | tr -d '\n' | cut -d\' -f4)"
|
||||||
|
gn_version="$(curl -sL "https://chromium.googlesource.com/chromium/src/+/${chromium_revision}/DEPS?format=TEXT" | base64 -d | grep gn_version | head -n1 | cut -d\' -f4)"
|
||||||
|
|
||||||
mkdir -p "buildtools/linux64"
|
mkdir -p "buildtools/linux64"
|
||||||
curl -sL "https://chromium.googlesource.com/chromium/src/+/${chromium_revision}/buildtools/linux64/gn.sha1?format=TEXT" | base64 -d > "buildtools/linux64/gn.sha1"
|
cipd ensure -ensure-file - -root . <<-CIPD
|
||||||
echo 'export CHROMIUM_BUILDTOOLS_PATH="'"$PWD"'/buildtools"' >> $BASH_ENV
|
$ServiceURL https://chrome-infra-packages.appspot.com/
|
||||||
|
@Subdir buildtools/linux64
|
||||||
|
gn/gn/linux-amd64 $GN_VERSION
|
||||||
|
CIPD
|
||||||
|
|
||||||
download_from_google_storage --bucket chromium-gn -s "buildtools/linux64/gn.sha1"
|
echo 'export CHROMIUM_BUILDTOOLS_PATH="'"$PWD"'/buildtools"' >> $BASH_ENV
|
||||||
- run:
|
- run:
|
||||||
name: Run Lint
|
name: Run Lint
|
||||||
command: |
|
command: |
|
||||||
|
|
Loading…
Reference in a new issue