Repository navigation
Remove Linux x86 native build and packaging - #5784
Conversation
📦 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 -- 5784PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5784"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-5784/packages --name skiasharp-pr-5784More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-5784 |
|
📖 Documentation Preview Every PR builds and smoke-tests the site. Add the Removing the label removes the preview. While the label is present, each new commit updates it. This comment is automatically updated by the documentation staging workflow. |
4cbe64e to
e4ce2b0
Compare
📊 SkiaSharp benchmarks — PR #5784⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS
Highlights⏱️ Time — 🔴 29 slower · 🟢 41 faster
Full per-OS benchmark deltasLinux⏱️ Time (vs 🌙 nightly
Windows⏱️ Time (vs 🌙 nightly
macOS⏱️ Time (vs 🌙 nightly
|
e4ce2b0 to
4a2a405
Compare
Follow upstream .NET removal of linux-x86 cross-build infrastructure (dotnet/runtime#136997, dotnet/runtime#137008, dotnet/arcade#17770, dotnet/dotnet-buildtools-prereqs-docker#1821) by dropping the Linux x86 cross-compilation Dockerfile, CI jobs, native artifact checks, and NuGet package entries. Co-authored-by: Copilot App <[email protected]>
4a2a405 to
2bb9ec9
Compare
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed 2bb9ec95 against main at 5e3e1c51 (merge-base 5e3e1c51, 19 files). This is a static, read-only review; I did not build or run tests.
LGTM. Linux x86 is removed consistently:
- CI: the glibc matrix now uses the same
each archpattern as alpine, and both merger lists inazure-templates-stages-native-merge.ymldrop exactly thenative_linux_x86_*jobs, so produced and expected job/artifact names still match. - Packaging: the three NativeAssets.Linux csproj files and net4
buildTransitivetargets keep the glibc/musl/bionic groups intact; the removedlinux-musl-x86entries were already dead since alpine never built x86. - Tests:
Helpers.psm1andLinuxGlibcCompatibility.ps1match the artifacts still produced;NativeAssetOutputTestsderives its expectations from the actual package contents and has no x86 assertions. - Leftovers: the remaining
x86references are Android, Windows/WinUI and netfx only.
Non-blocking nit: documentation/dev/packages.md:94 still lists x86 among the Linux package architectures (and line 95 inherits it for NoDependencies); dropping it would keep the docs in sync.
Description
Upstream .NET has removed all
linux-x86code, cross-compilation scripts, and Docker images across .NET 8, .NET 10, .NET 11, and .NET 12 (dotnet/runtime#136997,dotnet/runtime#137008,dotnet/arcade#17770,dotnet/dotnet-buildtools-prereqs-docker#1821), as .NET has never shipped alinux-x86runtime or apphost (dotnet/runtime#31180) and the Linux kernel/major distributions are phasing out 32-biti[3456]86support.Today's
mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-crossdeps-builder-amd64update picked updotnet/arcade#17770, which removed thex86target from/scripts/eng/common/cross/build-rootfs.shand brokescripts/infra/native/linux/docker/glibc-x86/Dockerfile.Following
linux-musl-x86(already removed in #4062), this PR drops thelinux-x86native build and packaging:scripts/infra/native/linux/docker/glibc-x86/and thex86special cases inglibc/Dockerfile,glibc/build-local.sh, andnative/linux/build.cakenative_linux_x86_linuxandnative_linux_x86_nodeps_linuxCI jobs fromscripts/azure-templates-stages-native-linux.ymlandscripts/azure-templates-stages-native-merge.ymlx86from the Linux native artifact inventory (tests/SkiaSharp.Tests.Native/Cases/Helpers.psm1andLinuxGlibcCompatibility.ps1)runtimes/linux-x86and staleruntimes/linux-musl-x86entries fromSkiaSharp.NativeAssets.Linux,SkiaSharp.NativeAssets.Linux.NoDependencies, andHarfBuzzSharp.NativeAssets.LinuxRelated issues
Related to dotnet/runtime#136997
Related to dotnet/runtime#137008
Related to dotnet/arcade#17770
Related to dotnet/dotnet-buildtools-prereqs-docker#1821
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
Behavior
SkiaSharp.NativeAssets.Linux,SkiaSharp.NativeAssets.Linux.NoDependencies, andHarfBuzzSharp.NativeAssets.Linuxno longer includeruntimes/linux-x86/native/binaries, matching upstream .NET's removal oflinux-x86infrastructure.Testing
tests/SkiaSharp.Tests.Native/Cases/Helpers.psm1andtests/SkiaSharp.Tests.Native/Cases/LinuxGlibcCompatibility.ps1to match the supported Linux architecture set (x64,arm,arm64,riscv64,loongarch64).Checklist
Changesabove lists all public API and behavioral changes (or "None.")///documentation and regenerated bindings when applicablemono/skiaPR linked above and bindings regenerated