-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: start building Windows on Arm builds (#19780)
* build: add zip manifest for Windows on Arm * ci: add Windows On Arm testing (cherry picked from commit 4064e1f) * Fix path to invoke CI on WOA hardware * Explicitly call 7z.exe to unzip files * Make sure GCLIENT_EXTRA_ARGS set for WOA builds get prepended on release build * set proper arch for npm * Try using Compress-Archive/Expand-Archive * Revert "Try using Compress-Archive/Expand-Archive" * disable woa hardware test for now
- Loading branch information
John Kleinschmidt
committed
Aug 21, 2019
1 parent
5e525b3
commit 4bc7b3b
Showing
4 changed files
with
174 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
steps: | ||
- task: CopyFiles@2 | ||
displayName: 'Copy Files to: src\electron' | ||
inputs: | ||
TargetFolder: src\electron | ||
|
||
- script: | | ||
cd src\electron | ||
npm install --verbose | ||
displayName: 'NPM install' | ||
|
||
- powershell: | | ||
$localArtifactPath = "$pwd\dist.zip" | ||
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/dist.zip" | ||
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" } | ||
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -osrc\out\Default -y $localArtifactPath | ||
displayName: 'Download and extract dist.zip for test' | ||
env: | ||
APPVEYOR_TOKEN: $(APPVEYOR_TOKEN) | ||
|
||
- powershell: | | ||
$localArtifactPath = "$pwd\ffmpeg.zip" | ||
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/ffmpeg.zip" | ||
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" } | ||
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -osrc\out\ffmpeg $localArtifactPath | ||
displayName: 'Download and extract ffmpeg.zip for test' | ||
env: | ||
APPVEYOR_TOKEN: $(APPVEYOR_TOKEN) | ||
|
||
- powershell: | | ||
$localArtifactPath = "$pwd\src\out\Default\mksnapshot.zip" | ||
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/mksnapshot.zip" | ||
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" } | ||
cd src\out\Default | ||
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -y mksnapshot.zip | ||
displayName: 'Download and unzip mksnapshot.zip for test' | ||
env: | ||
APPVEYOR_TOKEN: $(APPVEYOR_TOKEN) | ||
|
||
- powershell: | | ||
$localArtifactPath = "$pwd\src\node_headers.zip" | ||
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/node_headers.zip" | ||
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" } | ||
cd src | ||
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -y node_headers.zip | ||
displayName: 'Download node headers for test' | ||
env: | ||
APPVEYOR_TOKEN: $(APPVEYOR_TOKEN) | ||
|
||
- powershell: | | ||
$localArtifactPath = "$pwd\src\out\Default\electron.lib" | ||
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/electron.lib" | ||
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" } | ||
displayName: 'Download electron.lib for test' | ||
env: | ||
APPVEYOR_TOKEN: $(APPVEYOR_TOKEN) | ||
|
||
- powershell: | | ||
New-Item src\out\Default\gen\node_headers\Release -Type directory | ||
Copy-Item -path src\out\Default\electron.lib -destination src\out\Default\gen\node_headers\Release\node.lib | ||
displayName: 'Setup node headers' | ||
|
||
- script: | | ||
cd src | ||
set npm_config_nodedir=%cd%\out\Default\gen\node_headers | ||
set npm_config_arch=arm64 | ||
cd electron | ||
node script/yarn test -- --ci --enable-logging --verbose | ||
displayName: 'Run Electron tests' | ||
env: | ||
ELECTRON_OUT_DIR: Default | ||
IGNORE_YARN_INSTALL_ERROR: 1 | ||
|
||
- script: | | ||
cd src | ||
echo "Verifying non proprietary ffmpeg" | ||
python electron\script\verify-ffmpeg.py --build-dir out\Default --source-root %cd% --ffmpeg-path out\ffmpeg | ||
displayName: 'Verify ffmpeg' | ||
|
||
- script: | | ||
cd src | ||
echo "Verifying mksnapshot" | ||
python electron\script\verify-mksnapshot.py --build-dir out\Default --source-root %cd% | ||
displayName: 'Verify mksnapshot' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
LICENSE | ||
LICENSES.chromium.html | ||
chrome_100_percent.pak | ||
chrome_200_percent.pak | ||
electron.exe | ||
ffmpeg.dll | ||
icudtl.dat | ||
libEGL.dll | ||
libGLESv2.dll | ||
locales/am.pak | ||
locales/ar.pak | ||
locales/bg.pak | ||
locales/bn.pak | ||
locales/ca.pak | ||
locales/cs.pak | ||
locales/da.pak | ||
locales/de.pak | ||
locales/el.pak | ||
locales/en-GB.pak | ||
locales/en-US.pak | ||
locales/es-419.pak | ||
locales/es.pak | ||
locales/et.pak | ||
locales/fa.pak | ||
locales/fi.pak | ||
locales/fil.pak | ||
locales/fr.pak | ||
locales/gu.pak | ||
locales/he.pak | ||
locales/hi.pak | ||
locales/hr.pak | ||
locales/hu.pak | ||
locales/id.pak | ||
locales/it.pak | ||
locales/ja.pak | ||
locales/kn.pak | ||
locales/ko.pak | ||
locales/lt.pak | ||
locales/lv.pak | ||
locales/ml.pak | ||
locales/mr.pak | ||
locales/ms.pak | ||
locales/nb.pak | ||
locales/nl.pak | ||
locales/pl.pak | ||
locales/pt-BR.pak | ||
locales/pt-PT.pak | ||
locales/ro.pak | ||
locales/ru.pak | ||
locales/sk.pak | ||
locales/sl.pak | ||
locales/sr.pak | ||
locales/sv.pak | ||
locales/sw.pak | ||
locales/ta.pak | ||
locales/te.pak | ||
locales/th.pak | ||
locales/tr.pak | ||
locales/uk.pak | ||
locales/vi.pak | ||
locales/zh-CN.pak | ||
locales/zh-TW.pak | ||
natives_blob.bin | ||
resources.pak | ||
resources/default_app.asar | ||
snapshot_blob.bin | ||
swiftshader/libEGL.dll | ||
swiftshader/libGLESv2.dll | ||
v8_context_snapshot.bin | ||
version |