You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`src/MLXSharp.Native` mimics NuGet runtime assets with `runtimes/<rid>/native/libmlxsharp.*` folders.
73
-
The Linux x64 directory contains a stub library compiled from `native/src/mlxsharp.cpp` so tests can load it.
74
-
- Drop the real macOS build (`libmlxsharp.dylib`) into `runtimes/osx-arm64/native/` before packing a release build.
75
-
- At runtime `MlxNativeLibrary` probes the explicit `MlxClientOptions.LibraryPath`, the `MLXSHARP_LIBRARY` environment variable, and packaged runtime folders before falling back to system search paths.
70
+
## NuGet Package
71
+
72
+
**MLXSharp** NuGet package містить:
73
+
- Managed DLL з `Microsoft.Extensions.AI` інтеграціями
74
+
- Native бібліотеки в `runtimes/{rid}/native/`:
75
+
-`runtimes/linux-x64/native/libmlxsharp.so` - stub для CI/testing
76
+
-`runtimes/osx-arm64/native/libmlxsharp.dylib` - білдиться в CI на macOS
77
+
78
+
GitHub Actions автоматично:
79
+
1. Компілює native wrapper з MLX submodule
80
+
2. Копіює `libmlxsharp.dylib` в `src/MLXSharp.Native/runtimes/osx-arm64/native/`
81
+
3. Пакує managed + native разом в один NuGet пакет
82
+
83
+
Під час виконання `MlxNativeLibrary` автоматично знаходить правильну бібліотеку:
0 commit comments