Skip to content

Commit cb8d1a2

Browse files
prathikrPrathik Raobaijumeswani
authored
[sdk_v2] pipeline fixes (#469)
* restore/build tests * UseAppHost=False * comment * try upgrade to net10 * Update version for Microsoft.AI.Foundry.Local.Core * [sdk_v2] create sym link for onnxruntime binary to workaround bug in ORT 1.24.1 (#464) * impl * no boot --------- Co-authored-by: Prathik Rao <prathikrao@microsoft.com> --------- Co-authored-by: Prathik Rao <prathikrao@microsoft.com> Co-authored-by: Baiju Meswani <baijumeswani@gmail.com>
1 parent 658e729 commit cb8d1a2

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/build-cs-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
with:
3535
clean: true
3636

37-
- name: Setup .NET 9 SDK
37+
- name: Setup .NET 10 SDK
3838
uses: actions/setup-dotnet@v5
3939
with:
40-
dotnet-version: '9.0.x'
40+
dotnet-version: '10.0.x'
4141
env:
4242
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_PAT }}
4343

sdk_v2/js/script/install.cjs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const CORE_FEED = useNightly ? ORT_NIGHTLY_FEED : NUGET_FEED;
5555
const ARTIFACTS = [
5656
{
5757
name: useWinML ? 'Microsoft.AI.Foundry.Local.Core.WinML' : 'Microsoft.AI.Foundry.Local.Core',
58-
version: useNightly ? undefined : useWinML ? '0.9.0.2-dev-20260226T191541-2b332047' : '0.9.0.4-dev-20260226T191638-2b332047', // Set later using resolveLatestVersion if undefined
58+
version: useNightly ? undefined : useWinML ? '0.9.0.2-dev-20260226T191541-2b332047' : '0.9.0-dev-20260227T222239-2a3af92', // Set later using resolveLatestVersion if undefined
5959
feed: ORT_NIGHTLY_FEED
6060
},
6161
{
@@ -271,12 +271,29 @@ async function installPackage(artifact, tempDir) {
271271
}
272272
}
273273

274+
// ORT 1.24.1 has a bug: https://github.com/microsoft/onnxruntime/issues/27263
275+
// Resolve it by creating a symlink to the correct binary on Linux and macOS.
276+
function createOnnxRuntimeSymlinks() {
277+
if (os.platform() === 'win32') return;
278+
279+
const ext = os.platform() === 'darwin' ? '.dylib' : '.so';
280+
const libName = `libonnxruntime${ext}`;
281+
const linkName = `onnxruntime.dll`;
282+
const libPath = path.join(BIN_DIR, libName);
283+
const linkPath = path.join(BIN_DIR, linkName);
284+
if (fs.existsSync(libPath) && !fs.existsSync(linkPath)) {
285+
fs.symlinkSync(libName, linkPath);
286+
console.log(`[foundry-local] Created symlink: ${linkName} -> ${libName}`);
287+
}
288+
}
289+
274290
async function main() {
275291
const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'foundry-install-'));
276292
try {
277293
for (const artifact of ARTIFACTS) {
278294
await installPackage(artifact, tempDir);
279295
}
296+
createOnnxRuntimeSymlinks();
280297
console.log('[foundry-local] ✓ Installation complete.');
281298
} catch (e) {
282299
console.error(`[foundry-local] Installation failed: ${e.message}`);

0 commit comments

Comments
 (0)