diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5c832f..c7b6d94 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,9 +75,21 @@ jobs: if: runner.os == 'macOS' run: cmake -B plugin/build -S plugin -DCMAKE_BUILD_TYPE=Release + # JUCE's NEEDS_WEBVIEW2 expects the Microsoft.Web.WebView2 NuGet package + # to already be installed locally; it doesn't fetch it itself. Install it + # and point CMake at the resulting folder via JUCE_WEBVIEW2_PACKAGE_LOCATION. + - name: Install WebView2 SDK (Windows) + if: runner.os == 'Windows' + shell: pwsh + run: | + $sdkRoot = "$env:RUNNER_TEMP\webview2" + New-Item -ItemType Directory -Force -Path $sdkRoot | Out-Null + nuget install Microsoft.Web.WebView2 -Version 1.0.1901.177 -OutputDirectory $sdkRoot -ExcludeVersion + "JUCE_WEBVIEW2_PACKAGE_LOCATION=$sdkRoot" >> $env:GITHUB_ENV + - name: Configure JUCE plugins (Windows) if: runner.os == 'Windows' - run: cmake -B plugin/build -S plugin -G "Visual Studio 17 2022" -A x64 + run: cmake -B plugin/build -S plugin -G "Visual Studio 17 2022" -A x64 -DJUCE_WEBVIEW2_PACKAGE_LOCATION="$env:JUCE_WEBVIEW2_PACKAGE_LOCATION" - name: Build JUCE plugins if: runner.os != 'Linux'