This repository was archived by the owner on Mar 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -295,15 +295,19 @@ step-setup-goma-for-build: &step-setup-goma-for-build
295
295
run :
296
296
name : Setup Goma
297
297
command : |
298
- echo 'export NUMBER_OF_NINJA_PROCESSES=300' >> $BASH_ENV
298
+ if [ "`uname`" == "Linux" ]; then
299
+ echo 'export NUMBER_OF_NINJA_PROCESSES=300' >> $BASH_ENV
300
+ else
301
+ echo 'export NUMBER_OF_NINJA_PROCESSES=25' >> $BASH_ENV
302
+ fi
299
303
if [ ! -z "$RAW_GOMA_AUTH" ]; then
300
304
echo $RAW_GOMA_AUTH > ~/.goma_oauth2_config
301
305
fi
302
306
git clone https://github.com/electron/build-tools.git
303
307
cd build-tools
304
308
npm install
305
309
mkdir third_party
306
- node -e "require('./src/utils/goma.js').downloadAndPrepare({ gomaOneForAll: true } )"
310
+ node -e "require('./src/utils/goma.js').downloadAndPrepare()"
307
311
node -e "require('./src/utils/goma.js').ensure()"
308
312
echo 'export GN_GOMA_FILE='`node -e "console.log(require('./src/utils/goma.js').gnFilePath)"` >> $BASH_ENV
309
313
echo 'export LOCAL_GOMA_DIR='`node -e "console.log(require('./src/utils/goma.js').dir)"` >> $BASH_ENV
Original file line number Diff line number Diff line change @@ -141,8 +141,7 @@ build_script:
141
141
- cd build-tools
142
142
- npm install
143
143
- mkdir third_party
144
- - ps : >-
145
- node -e "require('./src/utils/goma.js').downloadAndPrepare({ gomaOneForAll: true })"
144
+ - node -e "require('./src/utils/goma.js').downloadAndPrepare()"
146
145
- ps : $env:GN_GOMA_FILE = node -e "console.log(require('./src/utils/goma.js').gnFilePath)"
147
146
- ps : $env:LOCAL_GOMA_DIR = node -e "console.log(require('./src/utils/goma.js').dir)"
148
147
- cd ..
You can’t perform that action at this time.
0 commit comments