File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020jobs :
2121 build :
2222 name : Build PrivyWebView.dll
23- runs-on : windows-latest
23+ runs-on : windows-2022
24+ env :
25+ WEBVIEW2_VERSION : 1.0.3296.44
26+ WEBVIEW2_PACKAGE_DIR : .webview2
2427
2528 steps :
2629 - uses : actions/checkout@v4
2730
31+ - name : Cache WebView2 SDK
32+ uses : actions/cache@v4
33+ with :
34+ path : ${{ env.WEBVIEW2_PACKAGE_DIR }}
35+ key : webview2-${{ runner.os }}-${{ env.WEBVIEW2_VERSION }}
36+
2837 - name : Install WebView2 SDK
2938 run : |
30- nuget install Microsoft.Web.WebView2 -OutputDirectory ${{ runner.temp }}/webview2
39+ nuget install Microsoft.Web.WebView2 -Version $env:WEBVIEW2_VERSION -OutputDirectory $env:WEBVIEW2_PACKAGE_DIR -NonInteractive
3140
3241 - name : Configure CMake
3342 run : |
34- $wv2 = Get-ChildItem "${{ runner.temp }}/webview2/ Microsoft.Web.WebView2.*" | Select-Object -First 1
43+ $wv2 = Get-Item (Join-Path $env:WEBVIEW2_PACKAGE_DIR " Microsoft.Web.WebView2.$env:WEBVIEW2_VERSION")
3544 $wv2Root = "$($wv2.FullName)/build/native"
3645 cmake -S SDK/Plugins -B SDK/Plugins/build -G "Visual Studio 17 2022" -A x64 -D WEBVIEW2_ROOT="$wv2Root"
3746
You can’t perform that action at this time.
0 commit comments