ci: Use VSTS checkout of electron (#14926)
This commit is contained in:
parent
2b3415dfd8
commit
319d9e519f
1 changed files with 6 additions and 8 deletions
14
vsts.yml
14
vsts.yml
|
@ -3,6 +3,12 @@ jobs:
|
||||||
displayName: Build Electron via GN
|
displayName: Build Electron via GN
|
||||||
timeoutInMinutes: 120
|
timeoutInMinutes: 120
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: 'Copy Files to: src/electron'
|
||||||
|
inputs:
|
||||||
|
TargetFolder: src/electron
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
export PATH="$PATH:/Users/electron/depot_tools"
|
export PATH="$PATH:/Users/electron/depot_tools"
|
||||||
echo "##vso[task.setvariable variable=PATH]$PATH"
|
echo "##vso[task.setvariable variable=PATH]$PATH"
|
||||||
|
@ -12,14 +18,6 @@ jobs:
|
||||||
--name "src/electron" \
|
--name "src/electron" \
|
||||||
--unmanaged \
|
--unmanaged \
|
||||||
"https://github.com/electron/electron"
|
"https://github.com/electron/electron"
|
||||||
mkdir src
|
|
||||||
git clone https://github.com/electron/electron src/electron
|
|
||||||
# TODO: there's a subtle race condition here in that if you push two
|
|
||||||
# commits to $BUILD_SOURCEBRANCH in quick succession, it's possible that
|
|
||||||
# fetching the BUILD_SOURCEBRANCH ref will not actually fetch the
|
|
||||||
# BUILD_SOURCEVERSION commit, and so the checkout will fail. Find a
|
|
||||||
# better solution for checking out the commit to be built.
|
|
||||||
(cd src/electron; git fetch origin +"${BUILD_SOURCEBRANCH}"; git checkout "${BUILD_SOURCEVERSION}")
|
|
||||||
gclient sync --with_branch_heads --with_tags
|
gclient sync --with_branch_heads --with_tags
|
||||||
cd src
|
cd src
|
||||||
export CHROMIUM_BUILDTOOLS_PATH=`pwd`/buildtools
|
export CHROMIUM_BUILDTOOLS_PATH=`pwd`/buildtools
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue