Repository navigation
[WASM] Drop native builds for pre-.NET 8 Emscripten versions - #4022
Merged
Merged
Conversation
….12) Remove native WASM build targets for .NET 5/6/7 which used Emscripten versions 2.0.6, 2.0.23, 3.1.7, and 3.1.12. These .NET versions are all end-of-life. The WASM pipeline now only builds for: - .NET 8: Emscripten 3.1.34 (st, mt, simd, mt+simd) - .NET 9+: Emscripten 3.1.56 (st, mt, simd, mt+simd) This reduces the WASM CI matrix from 15 jobs to 8, and eliminates the hanging build caused by Emscripten 2.0.6. Files changed: - scripts/azure-templates-stages-native-wasm.yml: removed 7 old build entries - binding/SkiaSharp.NativeAssets.WebAssembly/buildTransitive/SkiaSharp.targets - binding/HarfBuzzSharp.NativeAssets.WebAssembly/buildTransitive/HarfBuzzSharp.targets - binding/IncludeNativeAssets.SkiaSharp.targets - binding/IncludeNativeAssets.HarfBuzzSharp.targets Co-authored-by: Copilot <[email protected]>
Consumers targeting net6.0 or net7.0 Blazor/WASM will now receive a clear build error instead of silently getting no native library linked. The SkiaSharp.Views.Blazor package still ships net6.0 managed assemblies (via TFMBase), but the native WASM binaries are only available for net8.0+. Co-authored-by: Copilot <[email protected]>
Contributor
📦 Try the packages from this PRWarning Do not run these scripts without first reviewing the code in this PR. Step 1 — Download the packages bash / macOS / Linux: curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4022PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4022"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4022/packages --name skiasharp-pr-4022More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4022 |
- Remove old WASM artifact names from native merge pipeline (azure-templates-stages-native-merge.yml) that no longer exist - Extend the pre-net8.0 error guard to also cover Uno Platform WASM consumers (IsUnoHead + UnoRuntimeIdentifier == WebAssembly) Co-authored-by: Copilot <[email protected]>
Contributor
|
📖 Documentation Preview The documentation for this PR has been deployed and is available at: 🔗 View Staging Site This preview will be updated automatically when you push new commits to this PR. This comment is automatically updated by the documentation staging workflow. |
Co-authored-by: Copilot <[email protected]>
mattleibow
marked this pull request as ready for review
May 21, 2026 00:08
mattleibow
added a commit
that referenced
this pull request
May 22, 2026
…ne (#4045) [CI] Fix native build failures on release/3.119.x (#4045) Context: #4014, #4022, #3743, #4013 Four independent CI failures were blocking all builds on the 3.119.x release branch. Each fix is backported from main and adapted to the older file layout (scripts/ vs scripts/infra/). ~~ ANGLE WinAppSDK download (WinError 10013) ~~ DevDiv 1ES agents block Python's urllib from making outbound HTTPS connections. Replace the winappsdk_setup.py invocation with a Cake DownloadFile() from dnceng's dotnet-public feed, followed by a new PowerShell script (generate_winappsdk_headers.ps1) that runs winmdidl + midlrt to produce the C++ headers ANGLE needs. ~~ WASM Emscripten 2.0.6 hang ~~ The 2.0.6 build intermittently hangs in CI. No .NET release ever consumed this version — it was a legacy artifact from early experimentation. Remove it from the matrix and merge lists. ~~ Tizen SDK 6.1 permanently broken ~~ Samsung rebranded Tizen Studio to Tizen SDK starting with version 10.0 and the old 6.1 Certificate-Manager package fails deterministically with NoClassDefFoundError. Update to SDK 10.0 with the new URL pattern. ~~ Alpine apk.static transient download failures ~~ GitLab returns intermittent HTTP 5xx for apk.static. Without --fail, curl silently saves the error body and the script tries to chmod +x a JSON string. Add --fail --retry 5 --retry-delay 10 --retry-all-errors. Co-authored-by: Copilot <[email protected]>
mattleibow
added a commit
that referenced
this pull request
May 22, 2026
…ne (#4045) [CI] Fix native build failures on release/3.119.x (#4045) Context: #4014, #4022, #3743, #4013 Four independent CI failures were blocking all builds on the 3.119.x release branch. Each fix is backported from main and adapted to the older file layout (scripts/ vs scripts/infra/). ~~ ANGLE WinAppSDK download (WinError 10013) ~~ DevDiv 1ES agents block Python's urllib from making outbound HTTPS connections. Replace the winappsdk_setup.py invocation with a Cake DownloadFile() from dnceng's dotnet-public feed, followed by a new PowerShell script (generate_winappsdk_headers.ps1) that runs winmdidl + midlrt to produce the C++ headers ANGLE needs. ~~ WASM Emscripten 2.0.6 hang ~~ The 2.0.6 build intermittently hangs in CI. No .NET release ever consumed this version — it was a legacy artifact from early experimentation. Remove it from the matrix and merge lists. ~~ Tizen SDK 6.1 permanently broken ~~ Samsung rebranded Tizen Studio to Tizen SDK starting with version 10.0 and the old 6.1 Certificate-Manager package fails deterministically with NoClassDefFoundError. Update to SDK 10.0 with the new URL pattern. ~~ Alpine apk.static transient download failures ~~ GitLab returns intermittent HTTP 5xx for apk.static. Without --fail, curl silently saves the error body and the script tries to chmod +x a JSON string. Add --fail --retry 5 --retry-delay 10 --retry-all-errors. Co-authored-by: Copilot <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The WASM native build for Emscripten 2.0.6 was intermittently hanging in CI, and the older Emscripten versions target EOL runtimes. This PR removes all WASM native build jobs and NuGet package assets for Emscripten versions below 3.1.34 (.NET 8):
Retained: Emscripten 3.1.34 (.NET 8) and 3.1.56 (.NET 9/10/11) with all st/mt/simd variants.
Changes
CI Pipeline
azure-templates-stages-native-wasm.yml(15 → 8 jobs, ~47% reduction)azure-templates-stages-native-merge.ymlNuGet Package Targets
NativeFileReferenceentries fromSkiaSharp.NativeAssets.WebAssemblyandHarfBuzzSharp.NativeAssets.WebAssemblybuildTransitive targets< net8.0on Blazor WASM or Uno Platform WASM now get a clear build error instead of silently getting no native libraryInternal Targets
IncludeNativeAssets.SkiaSharp.targetsandIncludeNativeAssets.HarfBuzzSharp.targetsDocumentation
documentation/dev/packages.mdto reflect net8.0+ WASM native requirementWhat's NOT changed
SkiaSharp.Views.Blazor.csprojstill ships managed assemblies for net6.0 (viaTFMBase) — the managed code compiles fine, only native WASM linking requires net8.0+