appveyor-bake.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # The config is used to bake appveyor images, not for running CI jobs.
  2. # The config expects the following environment variables to be set:
  3. # - "APPVEYOR_BAKE_IMAGE" e.g. 'electron-99.0.4767.0'. Name of the image to be baked.
  4. # Typically named after the Chromium version on which the image is built.
  5. # This can be set dynamically in the prepare-appveyor script.
  6. version: 1.0.{build}
  7. build_cloud: electronhq-16-core
  8. image: Windows_Default_Appveyor
  9. environment:
  10. GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
  11. ELECTRON_OUT_DIR: Default
  12. ELECTRON_ENABLE_STACK_DUMPING: 1
  13. MOCHA_REPORTER: mocha-multi-reporters
  14. MOCHA_MULTI_REPORTERS: mocha-appveyor-reporter, tap
  15. GOMA_FALLBACK_ON_AUTH_FAILURE: true
  16. DEPOT_TOOLS_WIN_TOOLCHAIN: 0
  17. PYTHONIOENCODING: UTF-8
  18. build_script:
  19. - ps: Resize-Partition -DriveLetter C -Size (256GB) # ensure initial partition size
  20. - ps: Get-Partition -DriveLetter C
  21. - git config --global core.longpaths true
  22. - cd ..
  23. - mkdir src
  24. - ps: git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
  25. - ps: $env:PATH="$pwd\depot_tools;$env:PATH"
  26. - update_depot_tools.bat
  27. - ps: Move-Item $env:APPVEYOR_BUILD_FOLDER -Destination src\electron
  28. - src\electron\script\setup-win-for-dev.bat
  29. - >-
  30. gclient config
  31. --name "src\electron"
  32. --unmanaged
  33. %GCLIENT_EXTRA_ARGS%
  34. "https://github.com/electron/electron"
  35. - ps: cd src\electron
  36. - ps: node script\generate-deps-hash.js
  37. - ps: $depshash = Get-Content .\.depshash -Raw
  38. - ps: Copy-Item -path .\.depshash -destination ..\.depshash
  39. - ps: cd ..\..
  40. - gclient sync --with_branch_heads --with_tags --nohooks
  41. - ps: regsvr32 /s "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\DIA SDK\bin\amd64\msdia140.dll"
  42. on_image_bake:
  43. - ps: >-
  44. echo "Baking image: $env:APPVEYOR_BAKE_IMAGE at dir $PWD"
  45. - ps: Remove-Item -Recurse -Force $pwd\depot_tools
  46. - ps: Remove-Item -Recurse -Force $pwd\src\electron
  47. # Uncomment these lines to enable RDP
  48. #on_finish:
  49. # - ps: >-
  50. # $env:APPVEYOR_RDP_PASSWORD = "electron"
  51. # $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))