Skip to content

Commit 8043e2e

Browse files
deepak1556MarshallOfSound
authored andcommitted
build: only download gn binary for lint step
1 parent e8f6f31 commit 8043e2e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.circleci/config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,9 @@ steps-lint: &steps-lint
513513
name: Download GN Binary
514514
command: |
515515
chromium_revision="$(grep -A1 chromium_version src/electron/DEPS | tr -d '\n' | cut -d\' -f4)"
516-
buildtools_revision="$(curl -sL "https://chromium.googlesource.com/chromium/src/+/${chromium_revision}/DEPS?format=TEXT" | base64 -d | grep buildtools_revision -A1 | tr -d '\n' | cut -d\' -f4)"
517516
518-
git clone https://chromium.googlesource.com/chromium/src/buildtools "buildtools"
519-
(cd "buildtools" && git checkout "$buildtools_revision")
517+
mkdir -p "buildtools/linux64"
518+
curl -sL "https://chromium.googlesource.com/chromium/src/+/${chromium_revision}/buildtools/linux64/gn.sha1?format=TEXT" | base64 -d > "buildtools/linux64/gn.sha1"
520519
echo 'export CHROMIUM_BUILDTOOLS_PATH="'"$PWD"'/buildtools"' >> $BASH_ENV
521520
522521
download_from_google_storage --bucket chromium-gn -s "buildtools/linux64/gn.sha1"

0 commit comments

Comments
 (0)