ci: use cmd to call gclient (#21523)
This commit is contained in:
parent
fb20bd74e6
commit
48688f9124
1 changed files with 13 additions and 7 deletions
20
appveyor.yml
20
appveyor.yml
|
@ -78,7 +78,7 @@ build_script:
|
||||||
"https://github.com/electron/electron"
|
"https://github.com/electron/electron"
|
||||||
- ps: >-
|
- ps: >-
|
||||||
if ($env:GN_CONFIG -eq 'release') {
|
if ($env:GN_CONFIG -eq 'release') {
|
||||||
gclient sync --with_branch_heads --with_tags --ignore_locks --break_repo_locks
|
$env:RUN_GCLIENT_SYNC="true"
|
||||||
} else {
|
} else {
|
||||||
cd src\electron
|
cd src\electron
|
||||||
node script\generate-deps-hash.js
|
node script\generate-deps-hash.js
|
||||||
|
@ -92,16 +92,22 @@ build_script:
|
||||||
python src/electron/script/update-external-binaries.py
|
python src/electron/script/update-external-binaries.py
|
||||||
} else {
|
} else {
|
||||||
# file does not exist, gclient sync, then zip
|
# file does not exist, gclient sync, then zip
|
||||||
gclient sync --with_branch_heads --with_tags --ignore_locks --break_repo_locks
|
$env:RUN_GCLIENT_SYNC="true"
|
||||||
if ($env:TARGET_ARCH -ne 'ia32') {
|
if ($env:TARGET_ARCH -ne 'ia32') {
|
||||||
# archive current source for future use
|
# only save on x64/woa to avoid contention saving
|
||||||
# only run on x64/woa to avoid contention saving
|
$env:SAVE_GCLIENT_SRC="true"
|
||||||
if ($(7z a $zipfile src -xr!android_webview -xr!electron -xr'!*\.git' -xr!third_party\WebKit\LayoutTests! -xr!third_party\blink\web_tests -xr!third_party\blink\perf_tests -slp -t7z -mmt=30;$LASTEXITCODE -ne 0)) {
|
|
||||||
Write-warning "Could not save source to shared drive; continuing anyway"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
- if "%RUN_GCLIENT_SYNC%"=="true" ( gclient sync --with_branch_heads --with_tags --ignore_locks)
|
||||||
|
- ps: >-
|
||||||
|
if ($env:SAVE_GCLIENT_SRC -eq 'true') {
|
||||||
|
# archive current source for future use
|
||||||
|
# only run on x64/woa to avoid contention saving
|
||||||
|
if ($(7z a $zipfile src -xr!android_webview -xr!electron -xr'!*\.git' -xr!third_party\WebKit\LayoutTests! -xr!third_party\blink\web_tests -xr!third_party\blink\perf_tests -slp -t7z -mmt=30;$LASTEXITCODE -ne 0)) {
|
||||||
|
Write-warning "Could not save source to shared drive; continuing anyway"
|
||||||
|
}
|
||||||
|
}
|
||||||
- cd src
|
- cd src
|
||||||
- ps: $env:BUILD_CONFIG_PATH="//electron/build/args/%GN_CONFIG%.gn"
|
- ps: $env:BUILD_CONFIG_PATH="//electron/build/args/%GN_CONFIG%.gn"
|
||||||
- gn gen out/Default "--args=import(\"%BUILD_CONFIG_PATH%\") %GN_EXTRA_ARGS% cc_wrapper=\"%SCCACHE_PATH%\""
|
- gn gen out/Default "--args=import(\"%BUILD_CONFIG_PATH%\") %GN_EXTRA_ARGS% cc_wrapper=\"%SCCACHE_PATH%\""
|
||||||
|
|
Loading…
Reference in a new issue