Commit 2a1bf56
implement ADO packaging pipeline for FLC & SDK (#552)
## Foundry Local Packaging Pipeline
### Summary
This PR introduces the **Foundry Local Packaging Pipeline**, a unified
ADO pipeline that builds, signs, and tests Foundry Local Core (FLC) for
all platforms, packages it as NuGet and Python wheels, then builds,
signs, and tests the C#, JS, Python, and Rust SDKs — for both standard
and WinML variants.
**Pipeline stages:**
1. **Build FLC** — Native AOT binaries for win-x64, win-arm64,
linux-x64, osx-arm64
2. **Package FLC** — Multi-platform NuGet package + Python wheels from
the built binaries
3. **Build SDKs** — C#, JS, Python, Rust using the packaged FLC
4. **Test SDKs** — Validate each SDK against the pipeline-built FLC
**Produced artifacts:** `flc-nuget`, `flc-nuget-winml`, `flc-wheels`,
`flc-wheels-winml`, `cs-sdk`, `cs-sdk-winml`, `js-sdk`, `js-sdk-winml`,
`python-sdk`, `python-sdk-winml`, `rust-sdk`, `rust-sdk-winml`
**SDK Changes:**
1. Adds ability for python sdk to skip installing native depenencies and
use pre-installed binaries like `foundry-local-core`, `onnxruntime`,
`onnxruntime-genai`
2. Adjusts APIs to leverage new download_and_register_eps native interop
call for manually downloading and registering EPs
3. Adds temporary nuget.config to github actions c# pipeline to allow
ORT-Nightly to auto-fetch missing dependencies from upstream nuget.org
### Test coverage
All SDK tests currently run on **win-x64 only**. Additional platform
test jobs are blocked on infrastructure:
- **Windows ARM64** — waiting on a 1ES-hosted win-arm64 pool
- **macOS ARM64** — waiting on a 1ES-hosted macOS ARM64 pool
- **Linux x64** — waiting on the Linux onnxruntime dependency to be
stabilized
TODOs are tracked in the pipeline YAML for each.
### Build strategy
All FLC builds (including win-arm64 and osx-arm64) run on **x64
machines** because .NET Native AOT supports cross-compilation. The
win-arm64 build cross-compiles from x64 Windows — see [Cross-compilation
docs](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/cross-compile#windows).
Linux builds run on its own respective x64 hosted image.
### Origin
- **Foundry Local Core build steps** were lifted from
`neutron-server/.pipelines/FoundryLocalCore/`
- **SDK build/test steps** were lifted from `Foundry-Local/.github/`
---------
Co-authored-by: Prathik Rao <prathikrao@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 9e0c70d commit 2a1bf56
File tree
25 files changed
+2693
-119
lines changed- .github/workflows
- .pipelines
- templates
- sdk
- cs
- docs/api
- src
- Detail
- test/FoundryLocal.Tests
- js
- docs/classes
- src
- python
- src
- detail
- rust/src
25 files changed
+2693
-119
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
44 | 68 | | |
45 | 69 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 70 | | |
50 | 71 | | |
51 | | - | |
52 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
53 | 76 | | |
54 | 77 | | |
55 | 78 | | |
56 | | - | |
57 | 79 | | |
58 | 80 | | |
59 | 81 | | |
| |||
89 | 111 | | |
90 | 112 | | |
91 | 113 | | |
| 114 | + | |
92 | 115 | | |
93 | 116 | | |
94 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 20 | + | |
| 21 | + | |
74 | 22 | | |
75 | 23 | | |
76 | 24 | | |
| |||
0 commit comments