Skip to content

[performance] Build Android on Linux and reduce native/package CI overhead - #4815

Merged
mattleibow merged 12 commits into
mainfrom
mattleibow-speed-up-native-builds
Aug 20, 2026
Merged

mattleibow merged 12 commits into
mainfrom
mattleibow-speed-up-native-builds

Conversation

@mattleibow

@mattleibow mattleibow commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Reduce native and package CI wall time and agent consumption without changing package contents, shipped RID/architecture/feature coverage, ABI, signing preparation, security scanning, or deterministic-build behavior.

This PR has three related optimization areas:

  1. Remove unused host setup and broad submodule checkout from native jobs.
  2. Build the four Android ABIs once in Linux Docker instead of duplicating them on Windows and macOS.
  3. Keep normal/special packaging as separate jobs while removing redundant work from the special-package job.

Native orchestration

  • Skip host Ninja and .NET setup for containerized native jobs because their toolchain and Cake invocation run inside the image.
  • Skip host Python when it is not needed; retain it whenever cache-key computation runs.
  • Retain existing host tools for direct Windows and macOS builds.
  • Checkout only externals/skia and externals/depot_tools for native source jobs; merge-only jobs checkout no submodules.
  • Configure build variables once rather than twice on uncached/cache-miss native source builds.

Android native builds

  • Build x86, x64, arm, and arm64 in four parallel Linux Docker jobs.
  • Remove all Windows and macOS Android jobs; Linux artifacts are the canonical native-merge inputs.
  • Use Microsoft's moving Azure Linux Android prerequisite tag. Cache-miss or cache-disabled builds consume the current base image rather than a pinned digest.
  • Validate NDK r27c (27.2.12479018) and install .NET SDK 10.0.108 through the same official dotnet-install.sh pattern used by the other native Dockerfiles.
  • Preserve GN/NDK feature configuration, symbol extraction, stripping, GNU debug links, and 16 KiB LOAD-alignment checks.
  • Keep the existing native/android output cache. Its key hashes native/android/**, scripts/infra/native/android/** (including the Dockerfile/startup script), shared native inputs, and Skia/depot_tools SHAs. A remote-only base-tag update is picked up on the next cache miss or cache-disabled run; it does not itself alter the artifact-cache key.

Package build

  • Keep package_normal_windows and package_special_windows as separate dependent jobs.
  • Remove the root nuget-special -> libs dependency; special packing only wraps existing native, normal NuGet, and symbol outputs.
  • Skip Node, Android SDK/JDK, and .NET workload provisioning in the special job while retaining .NET SDK installation, tool restore, Visual Studio selection, artifact flow, and package logic.
  • Checkout only the docs submodule required by normal packaging; special packaging checks out no submodules.
  • Preserve cache-hit behavior, all six package artifacts, normal/special binlogs, native wrappers, and SignList.xml.
  • Add workload, Node, and recursive-submodule bootstrapper controls whose defaults preserve every other job.

Measured results

Every before/after performance table uses the same paired runs:

  • Before: cold main 1557164, exact current main SHA 46ea7244b6ab, with 65 cache misses and zero hits.
  • After: cache-disabled final branch 1560012, exact PR head a5bfc32a32f, succeeded end to end.

Intermediate runs are not used in the performance tables.

End-to-end

Metric Before 1557164 After 1560012 Change
Result Failed in samples Succeeded Full pipeline green
Queue wait 5m32s 20s -5m11s / -93.8%
Execution wall 6h17m44s 3h30m15s -2h47m29s / -44.3%
Executed jobs 90 86 -4 / -4.4%
Raw agent-minutes 3,087.2 1,562.4 -1,524.8 / -49.4%

Main receives additional default-branch policy-injected work that a manual feature-branch run does not. Raw wall and agent-minute rows are therefore end-to-end operational comparisons, not wholly attributable to this PR. Direct task counts and job-topology changes below remain exact.

Native pipeline

Metric Before 1557164 After 1560012 Change
Native source/merge jobs 63 59 -4 / -6.3%
Raw native agent-minutes 2,242.5 1,172.1 -1,070.4 / -47.7%
Longest source stage 1h29m56s 1h05m47s -24m09s / -26.9%
Source start through full merge 1h55m57s 1h19m20s -36m37s / -31.6%
Full native merge 21m12s 13m08s -8m05s / -38.1%
Linux-only merge 11m04s 7m11s -3m52s / -35.1%
WASM-only merge 8m06s 4m14s -3m52s / -47.7%

Source-stage wall changes were Windows -67.2%, macOS -24.0%, Linux -9.7%, WASM -26.0%, and Tizen +25.3%. Tizen is reported rather than hidden; no Tizen code or matrix changed.

Host/setup task counts changed as intended: Python selection 88 -> 38, Ninja installation 61 -> 15, .NET installation 85 -> 39, .NET --info 125 -> 71, and build-variable configuration 155 -> 86. Full recursive submodule checkouts fell from 65 / 91.7 agent-minutes to zero, replaced by 56 targeted native checkouts / 73.5 minutes. Artifact-download count remained exactly 119, with transfer time falling from 27.9 to 24.3 minutes. Docker image builds increased from 43 to 47 because the four Android builds now run in Docker; image setup rose from 78.6 to 97.5 agent-minutes and is included in the totals above.

Android migration

Metric Before 1557164 After 1560012 Change
Build hosts / jobs Windows + macOS / 8 Linux / 4 -4 jobs
Raw Android agent-minutes 429.9 61.6 -368.3 / -85.7%
Critical Android job 1h14m10s 15m34s -58m36s / -79.0%
ABI coverage x86, x64, arm, arm64 x86, x64, arm, arm64 Preserved

Final Linux jobs completed in 15m14s-15m34s. All four artifacts feed the canonical native merge.

Package pipeline

Metric Before 1557164 After 1560012 Change
Normal job wall 64m18s 21m22s -42m56s / -66.8%
nuget-normal bootstrapper 28m49s 8m44s -20m05s / -69.7%
Special job wall 1h08m07s 12m51s -55m15s / -81.1%
nuget-special bootstrapper 31m54s 6m49s -25m05s / -78.6%
Package stage wall 2h21m00s 43m36s -1h37m23s / -69.1%
Package scan 6m59s 2m40s -4m19s / -61.7%
Published package artifacts 6 6 Preserved

All six outputs published. Normal product artifact sizes differ from main by at most 0.12%; the normal build/log artifact differs by 0.35%. nuget_special differs by 0.07% and the special build/log artifact by 0.91%.

Managed build and tests are validation, not optimization targets. Both succeeded: managed build in 40m50s and tests in 57m23s. All 33 published candidate test runs report zero failed tests. Samples also succeeded in 1h12m11s; cold main failed its sample stage after 1h44m28s.

Related issues

N/A.

Required skia PR

None.

Areas affected

  • Managed API (binding/)
  • Native / C API (externals/skia/src/c, include/c)
  • Generated P/Invoke bindings
  • Native dependency or Skia update
  • Views & integrations
  • Rendering output / visual behavior
  • Performance
  • Tests
  • Build, packaging, or CI
  • Documentation or samples

Changes

None - CI-only; no public API, C API, ABI, package-content, shipped-asset, signing, scanning, or runtime behavior change.

Testing

  • Final cache-disabled run 1560012 succeeded end to end. Build Analysis reports no known or unmatched failures.
  • The final YAML preview contains four native_android_*_linux jobs, no Windows/macOS Android jobs, Linux canonical merge inputs, targeted native checkout, and separate normal/special package jobs.
  • Cache dependency validation covers all 4,782 tracked files with zero uncovered files. native/android includes both Android source directories and the Docker context.
  • dotnet cake --target=nuget --dryrun --skipExternals=all schedules libs, then nuget-normal, then nuget-special; standalone nuget-special does not schedule libs.
  • Both package jobs and package scanning succeeded; all six package artifact sizes match cold main within 1%.
  • All 33 published test runs report zero failed tests; samples succeeded.
  • Artifact inventory changes are exactly expected: eight Windows/macOS Android source artifacts became four Linux Android artifacts, the failed-sample artifact became samples_windows, and the coverage artifact name contains the new build ID. Every other artifact name is preserved.
  • Merged native size differs from cold main by 0.04%; native_linux and native_wasm sizes are exact matches.
  • Android ELF/artifact equivalence was independently validated in 1559377: exact four-file .so/.so.dbg inventory, matching ELF class/machine, exported dynamic symbols, DT_NEEDED, GNU debug links, and 16 KiB LOAD alignment across every ABI. This supporting run is not used in the performance tables.
  • Component Detection remains present on every Android job; no security scan or artifact-publication template is bypassed.
  • DevDiv native 15030082 and package/signing 15032120 succeeded at the exact branch SHA.
  • DevDiv tests 15032942 passed managed builds, samples, and every test job except one macOS tests-netcore job canceled at the 180-minute timeout. That task emitted no test/product error, only existing CS0618 warnings. Exact-main DevDiv run 15017102 and automatic public PR run 1559994 had the same macOS 180-minute timeout, while the cache-disabled final run 1560012 passed macOS tests and produced an unchanged macOS artifact. This is a pre-existing macOS hang, not a PR regression, and was accepted as non-blocking after cross-run correlation.
  • Current GitHub checks have 108 passes. The remaining visible failures are the aggregate/canceled macOS timeout described above plus three nightly benchmark variants that fail before benchmarks because the required nightly package is absent from the feed; neither failure class is caused by this PR.

Checklist

  • Tests added or updated (not applicable: CI orchestration-only; validated with compiled pipeline previews, uncached native builds, native merges, ELF comparisons, package generation, and public-pipeline runs)
  • Changes above lists all public API and behavioral changes (or "None.")
  • New/changed public API? N/A
  • Native change? N/A; no C API/submodule change or companion mono/skia PR required

The Android x86, x64, arm, and arm64 shipping artifacts are produced by the Windows native jobs and only those artifacts are consumed by the native merge. The duplicate macOS jobs publish artifacts that no downstream job downloads.\n\nRemoving them preserves the complete Android RID and architecture matrix while avoiding four hosted macOS agents per build.\n\nCo-authored-by: Copilot App <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

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 -- 4815

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4815"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-4815/packages --name skiasharp-pr-4815
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-4815

Package special NuGets directly from the native and normal-package artifacts instead of rebuilding all managed libraries. Skip Node, Android tooling, and .NET workload provisioning for the special package job while retaining the .NET SDK and tool restore.

Co-authored-by: Copilot App <[email protected]>
@github-actions

github-actions Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #4815

⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS

Informational only — this never blocks the PR. 🟢 faster / less allocation · 🔴 slower / more allocation; moves under 5% are hidden as noise.

⏱️ Times are raw BenchmarkDotNet means, and the ⭐ PR and baseline legs run on separate CI runners, so microbenchmarks can swing run-to-run — treat small time deltas as noise. Allocations are deterministic and the reliable signal. The interactive perf-dashboard (linked below) applies smoothing for the trend view.

Highlights

⏱️ Time — 🔴 37 slower · 🟢 30 faster

  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · macOS · 1.52 µs → 2.27 µs (+49%)
  • 🟢 RuntimeEffectShaderBenchmark.DrawFrame · Windows · 1.22 ms → 696.65 µs (-43%)
  • 🔴 CanvasDrawBenchmark.Draw(Shapes: 64) · macOS · 1.39 ms → 1.93 ms (+39%)
  • 🟢 ColorMathBenchmark.UnPreMultiply(Colors: 4096) · Windows · 12.79 µs → 7.96 µs (-38%)
  • 🟢 ColorMathBenchmark.PreMultiply(Colors: 4096) · Windows · 14.74 µs → 9.29 µs (-37%)
  • …and 62 more (see details below)
Full per-OS benchmark deltas

Linux

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.10)

Benchmark baseline this PR Δ
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 100.53 µs 109.90 µs 🔴 +9%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 254.11 µs 270.78 µs 🔴 +7%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 351.94 µs 372.99 µs 🔴 +6%

Windows

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.10)

Benchmark baseline this PR Δ
RuntimeEffectShaderBenchmark.DrawFrame 1.22 ms 696.65 µs 🟢 -43%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 12.79 µs 7.96 µs 🟢 -38%
ColorMathBenchmark.PreMultiply(Colors: 4096) 14.74 µs 9.29 µs 🟢 -37%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 86.67 µs 60.23 µs 🟢 -31%
MatrixOpsBenchmark.Concat(Count: 4096) 256.01 µs 183.11 µs 🟢 -28%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 2.84 ms 2.03 ms 🟢 -28%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 11.24 ms 8.08 ms 🟢 -28%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 5.42 µs 3.91 µs 🟢 -28%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 969.18 µs 700.88 µs 🟢 -28%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 361.89 µs 261.80 µs 🟢 -28%
MatrixOpsBenchmark.Invert(Count: 4096) 148.24 µs 107.71 µs 🟢 -27%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.34 ms 972.89 µs 🟢 -27%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 257.66 µs 191.32 µs 🟢 -26%
ColorParseBenchmark.Parse(Iterations: 1000) 77.81 µs 60.16 µs 🟢 -23%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.65 ms 2.06 ms 🟢 -22%
MatrixMapPointsBenchmark.MapVector(Points: 256) 8.88 µs 6.92 µs 🟢 -22%
CanvasDrawBenchmark.Draw(Shapes: 512) 20.57 ms 16.47 ms 🟢 -20%
MatrixMapPointsBenchmark.MapRect(Points: 256) 8.53 µs 6.85 µs 🟢 -20%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.25 ms 2.61 ms 🟢 -19%
PathBoundsBenchmark.TightBounds(Points: 1024) 16.70 µs 13.54 µs 🟢 -19%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 822.95 µs 667.82 µs 🟢 -19%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 96.45 µs 114.21 µs 🔴 +18%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 137.55 µs 112.34 µs 🟢 -18%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 9.81 µs 8.01 µs 🟢 -18%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 153.16 µs 126.53 µs 🟢 -17%
…and 7 more

macOS

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.10)

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.52 µs 2.27 µs 🔴 +49%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.39 ms 1.93 ms 🔴 +39%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 49.43 µs 65.91 µs 🔴 +33%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 18.14 µs 23.40 µs 🔴 +29%
MatrixMapPointsBenchmark.MapRect(Points: 256) 3.05 µs 3.91 µs 🔴 +28%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 5.40 ms 6.85 ms 🔴 +27%
ColorMathBenchmark.PreMultiply(Colors: 4096) 8.48 µs 10.64 µs 🔴 +26%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 543.43 µs 676.13 µs 🔴 +24%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 148.63 µs 184.35 µs 🔴 +24%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.14 µs 1.40 µs 🔴 +23%
CanvasDrawBenchmark.Draw(Shapes: 512) 11.08 ms 13.46 ms 🔴 +22%
ColorParseBenchmark.Parse(Iterations: 1000) 63.10 µs 76.52 µs 🔴 +21%
ColorMathBenchmark.ToColor(Colors: 4096) 18.93 µs 22.92 µs 🔴 +21%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 66.42 µs 78.64 µs 🔴 +18%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 135.9 ns 160.8 ns 🔴 +18%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 6.17 µs 7.28 µs 🔴 +18%
MatrixMapPointsBenchmark.MapVector(Points: 256) 2.43 µs 2.84 µs 🔴 +17%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 7.56 µs 8.80 µs 🔴 +16%
ColorMathBenchmark.ToColorF(Colors: 4096) 4.92 µs 5.52 µs 🔴 +12%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 141.56 µs 158.40 µs 🔴 +12%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 5.71 ms 6.26 ms 🔴 +10%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.45 ms 1.57 ms 🔴 +9%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 1.18 ms 1.27 ms 🔴 +8%
PathBoundsBenchmark.TightBounds(Points: 64) 850.3 ns 920.5 ns 🔴 +8%
MatrixOpsBenchmark.Invert(Count: 4096) 65.06 µs 70.34 µs 🔴 +8%
…and 7 more

📈 Full interactive perf-dashboard & run details →

@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

This preview will be updated automatically when you push new commits to this PR.


This comment is automatically updated by the documentation staging workflow.

@github-actions

github-actions Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

📦 Artifact size report

Packages from this PR (build 1560012) vs the latest nightly baseline 4.152.0-nightly.17 (observed 2026-08-19).

Total .nupkg size: 569.8 MB → 569.0 MB (−827.9 KB, -0.1%)

Packages

⚠️ marks growth over 500.0 KB or 2%. Changes under 50.0 KB are treated as noise.

Package baseline this PR Δ Δ%
SkiaSharp.NativeAssets.WinUI 109.1 MB 108.5 MB 🟢 −680.1 KB -0.6%
SkiaSharp.NativeAssets.Android 18.1 MB 17.9 MB 🟢 −257.2 KB -1.4%
SkiaSharp.NativeAssets.WebAssembly 69.7 MB 69.7 MB 🔴 +73.0 KB +0.1%

+37 package(s) unchanged (< 50.0 KB).

Per-file changes

SkiaSharp.NativeAssets.Android

File Size
🧬 android-x86 (runtimes/android-x86/native/libSkiaSharp.so) 11.8 MB → 11.0 MB (🟢 −802.2 KB)

SkiaSharp.NativeAssets.WinUI

File Size
runtimes/win-x86/native/libGLESv2.pdb 67.2 MB → 67.2 MB (🟢 −80.0 KB)
runtimes/win-x64/native/libGLESv2.pdb 66.6 MB → 66.6 MB (🟢 −64.0 KB)
runtimes/win-arm64/native/libGLESv2.pdb 64.5 MB → 64.4 MB (🟢 −48.0 KB)
runtimes/win-arm64/lib/net10.0-windows10.0.19041.0/SkiaSharp.Views.WinUI.Native.Projection.dll 24.5 KB → 25.5 KB (🔴 +1.0 KB)
runtimes/win-arm64/lib/net9.0-windows10.0.19041.0/SkiaSharp.Views.WinUI.Native.Projection.dll 24.5 KB → 25.5 KB (🔴 +1.0 KB)
runtimes/win-x64/lib/net10.0-windows10.0.19041.0/SkiaSharp.Views.WinUI.Native.Projection.dll 24.5 KB → 25.5 KB (🔴 +1.0 KB)
runtimes/win-x64/lib/net9.0-windows10.0.19041.0/SkiaSharp.Views.WinUI.Native.Projection.dll 24.5 KB → 25.5 KB (🔴 +1.0 KB)
runtimes/win-x86/lib/net10.0-windows10.0.19041.0/SkiaSharp.Views.WinUI.Native.Projection.dll 24.5 KB → 25.5 KB (🔴 +1.0 KB)
runtimes/win-x86/lib/net9.0-windows10.0.19041.0/SkiaSharp.Views.WinUI.Native.Projection.dll 24.5 KB → 25.5 KB (🔴 +1.0 KB)

Informational only — this never blocks the PR. Native binaries are labelled by os/arch.

Copilot AI added 2 commits August 19, 2026 10:42
Containerized native builds use the toolchain inside their Docker image, so installing Python, Ninja, and .NET on the host only adds setup work. Native source builds also only require the Skia and depot_tools submodules, while merge jobs require none.\n\nPreserve host tools for direct native builds and Python for cache-key computation. Managed checkout and provisioning behavior remains unchanged.\n\nCo-authored-by: Copilot App <[email protected]>\nCopilot-Session: aaededd0-4f67-43d2-9c48-94ae5d66f885
Run normal and special NuGet packing on the same Windows agent so the special packages reuse the managed build and package outputs in place. Preserve the existing package artifacts while removing the second job's queue, checkout, cache, Python, SDK, tool restore, and artifact transfers. Limit the remaining checkout to the API docs submodule and skip unused Node provisioning.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 9a31f503-e746-4718-ab9a-06a3cee124c6
@mattleibow mattleibow changed the title [performance] Remove redundant macOS Android native jobs [performance] Reduce redundant native CI work Aug 19, 2026
Copilot AI added 3 commits August 19, 2026 12:22
Normal packaging compiles TypeScript-backed managed projects, so keep Node in the consolidated package job while retaining the removal of the separate special-job provisioning.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 9a31f503-e746-4718-ab9a-06a3cee124c6
Keep cross-host Android coverage in the daily scheduled native pipeline while skipping the four unconsumed macOS artifacts in ordinary PR and CI builds. Windows remains the shipping Android producer until a Linux replacement is proven equivalent.\n\nCo-authored-by: Copilot App <[email protected]>\nCopilot-Session: aaededd0-4f67-43d2-9c48-94ae5d66f885
Combine the validated native and package CI reductions in one pull request. Preserve native targeted submodule checkout while honoring package jobs that explicitly disable recursive submodules.\n\nCo-authored-by: Copilot App <[email protected]>\nCopilot-Session: aaededd0-4f67-43d2-9c48-94ae5d66f885
@mattleibow mattleibow changed the title [performance] Reduce redundant native CI work [performance] Reduce redundant native and package CI work Aug 19, 2026
Move all four Android ABI builds into a pinned Azure Linux Android container and make those artifacts the canonical native merge inputs. Remove the redundant Windows and macOS Android jobs while preserving the existing source build, symbol extraction, and alignment validation paths.

Co-authored-by: Copilot App <[email protected]>
Build all four shipping Android ABIs in the pinned Linux container, remove the Windows and macOS duplicates, and consume the Linux artifacts in native merge.\n\nCo-authored-by: Copilot App <[email protected]>\nCopilot-Session: aaededd0-4f67-43d2-9c48-94ae5d66f885
Copilot AI added 3 commits August 20, 2026 00:13
Track the moving Android prerequisite image for security updates and install the requested .NET SDK through the same dotnet-install script used by the other native Dockerfiles.\n\nCo-authored-by: Copilot App <[email protected]>\nCopilot-Session: aaededd0-4f67-43d2-9c48-94ae5d66f885
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: aaededd0-4f67-43d2-9c48-94ae5d66f885
Retain the optimized special-package setup while restoring normal and special NuGet packing as distinct Azure jobs.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: aaededd0-4f67-43d2-9c48-94ae5d66f885
@mattleibow
mattleibow requested a balanced review from Copilot August 19, 2026 22:49
@mattleibow mattleibow changed the title [performance] Reduce redundant native and package CI work [performance] Build Android on Linux and reduce native/package CI overhead Aug 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reduces native and packaging CI work by consolidating Android builds on Linux containers and making bootstrap steps configurable.

Changes:

  • Moves Android native builds to four parallel Linux Docker jobs.
  • Avoids unnecessary tool installation and submodule checkout.
  • Separates normal and special packaging without rebuilding managed libraries.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
scripts/infra/native/android/docker/startup.sh Adds Android container startup diagnostics.
scripts/infra/native/android/docker/Dockerfile Defines the Android native build image.
scripts/azure-templates-stages-package.yml Streamlines normal and special package jobs.
scripts/azure-templates-stages-native-windows.yml Removes Windows Android builds.
scripts/azure-templates-stages-native-merge.yml Uses Linux Android artifacts.
scripts/azure-templates-stages-native-macos.yml Removes macOS Android builds.
scripts/azure-templates-stages-native-linux.yml Adds parallel Linux Android jobs.
scripts/azure-templates-jobs-bootstrapper.yml Adds selective setup and checkout controls.
native/android/build.cake Enables Android native builds on Linux.
build.cake Removes the special package target’s libs dependency.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@mattleibow
mattleibow merged commit a15907f into main Aug 20, 2026
109 of 114 checks passed
@mattleibow
mattleibow deleted the mattleibow-speed-up-native-builds branch August 20, 2026 21:27
@github-actions github-actions Bot added this to the 4.152.0-rc.1 milestone Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants