Skip to content

Commit a14d0a4

Browse files
lucasloispcodex
andcommitted
Pin Windows plugin build dependencies
Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com> Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com>
1 parent b08db98 commit a14d0a4

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/build-windows-plugin.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,27 @@ on:
2020
jobs:
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

0 commit comments

Comments
 (0)