mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Add new pipeline using the latest webview2 from Edge Canary (#36317)
* using the latest webview2 for testing --------- Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com> Co-authored-by: Clint Rutkas <clint@rutkas.com>
This commit is contained in:
1
.github/actions/spell-check/expect.txt
vendored
1
.github/actions/spell-check/expect.txt
vendored
@@ -740,6 +740,7 @@ LExit
|
|||||||
lhwnd
|
lhwnd
|
||||||
LIBID
|
LIBID
|
||||||
lindex
|
lindex
|
||||||
|
linkid
|
||||||
LINKOVERLAY
|
LINKOVERLAY
|
||||||
LINQTo
|
LINQTo
|
||||||
listview
|
listview
|
||||||
|
|||||||
42
.pipelines/v2/ci-test-with-canary-webview2.yml
Normal file
42
.pipelines/v2/ci-test-with-canary-webview2.yml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
trigger: none
|
||||||
|
pr: none
|
||||||
|
schedules:
|
||||||
|
- cron: "0 0 * * *" # every day at midnight
|
||||||
|
displayName: "Daily midnight Build"
|
||||||
|
branches:
|
||||||
|
include:
|
||||||
|
- main
|
||||||
|
always: false # only run if there's code changes!
|
||||||
|
|
||||||
|
name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
- name: buildPlatforms
|
||||||
|
type: object
|
||||||
|
default:
|
||||||
|
- x64
|
||||||
|
- arm64
|
||||||
|
- name: enableMsBuildCaching
|
||||||
|
type: boolean
|
||||||
|
displayName: "Enable MSBuild Caching"
|
||||||
|
default: false
|
||||||
|
- name: runTests
|
||||||
|
type: boolean
|
||||||
|
displayName: "Run Tests"
|
||||||
|
default: true
|
||||||
|
- name: useVSPreview
|
||||||
|
type: boolean
|
||||||
|
displayName: "Build Using Visual Studio Preview"
|
||||||
|
default: false
|
||||||
|
- name: useLatestWebView2
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
|
extends:
|
||||||
|
template: templates/pipeline-ci-build.yml
|
||||||
|
parameters:
|
||||||
|
buildPlatforms: ${{ parameters.buildPlatforms }}
|
||||||
|
enableMsBuildCaching: ${{ parameters.enableMsBuildCaching }}
|
||||||
|
runTests: ${{ parameters.runTests }}
|
||||||
|
useVSPreview: ${{ parameters.useVSPreview }}
|
||||||
|
useLatestWebView2: ${{ parameters.useLatestWebView2 }}
|
||||||
@@ -8,6 +8,9 @@ parameters:
|
|||||||
- name: inputArtifactStem
|
- name: inputArtifactStem
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
- name: useLatestWebView2
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: Test${{ parameters.platform }}${{ parameters.configuration }}
|
- job: Test${{ parameters.platform }}${{ parameters.configuration }}
|
||||||
@@ -34,6 +37,29 @@ jobs:
|
|||||||
fetchDepth: 1
|
fetchDepth: 1
|
||||||
fetchTags: false
|
fetchTags: false
|
||||||
|
|
||||||
|
- ${{ if eq(parameters.useLatestWebView2, true) }}:
|
||||||
|
- powershell: |
|
||||||
|
$edge_url = 'https://go.microsoft.com/fwlink/?linkid=2084649&Channel=Canary&language=en'
|
||||||
|
$timeout = New-TimeSpan -Minutes 6
|
||||||
|
$timeoutSeconds = [int]$timeout.TotalSeconds
|
||||||
|
$command = {
|
||||||
|
Invoke-WebRequest -Uri $using:edge_url -OutFile $(Pipeline.Workspace)\MicrosoftEdgeSetup.exe
|
||||||
|
Write-Host "##[command]Installing Canary channel of Microsoft Edge"
|
||||||
|
Start-Process $(Pipeline.Workspace)\MicrosoftEdgeSetup.exe -ArgumentList '/silent /install' -Wait
|
||||||
|
}
|
||||||
|
|
||||||
|
$job = Start-Job -ScriptBlock $command
|
||||||
|
Wait-Job $job -Timeout $timeoutSeconds
|
||||||
|
if ($job.State -eq "Running") {
|
||||||
|
Stop-Job $job
|
||||||
|
Write-Host "##[warning]The job was stopped because it exceeded the time limit."
|
||||||
|
}
|
||||||
|
displayName: "Install the latest MSEdge Canary"
|
||||||
|
|
||||||
|
- script:
|
||||||
|
reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2\ReleaseChannels" /v PowerToys.exe /t REG_SZ /d "3"
|
||||||
|
displayName: "Enable WebView2 Canary Channel"
|
||||||
|
|
||||||
- download: current
|
- download: current
|
||||||
displayName: Download artifacts
|
displayName: Download artifacts
|
||||||
artifact: build-${{ parameters.platform }}-${{ parameters.configuration }}${{ parameters.inputArtifactStem }}
|
artifact: build-${{ parameters.platform }}-${{ parameters.configuration }}${{ parameters.inputArtifactStem }}
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ parameters:
|
|||||||
- name: useVSPreview
|
- name: useVSPreview
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
- name: useLatestWebView2
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
- name: useLatestWinAppSDK
|
- name: useLatestWinAppSDK
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
@@ -79,3 +82,4 @@ stages:
|
|||||||
parameters:
|
parameters:
|
||||||
platform: ${{ platform }}
|
platform: ${{ platform }}
|
||||||
configuration: Release
|
configuration: Release
|
||||||
|
useLatestWebView2: ${{ parameters.useLatestWebView2 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user