diff --git a/.github/workflows/build-cs-steps.yml b/.github/workflows/build-cs-steps.yml index b0f78f2..fbe75e8 100644 --- a/.github/workflows/build-cs-steps.yml +++ b/.github/workflows/build-cs-steps.yml @@ -34,10 +34,10 @@ jobs: with: clean: true - - name: Setup .NET 9 SDK + - name: Setup .NET 10 SDK uses: actions/setup-dotnet@v5 with: - dotnet-version: '9.0.x' + dotnet-version: '10.0.x' env: NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_PAT }} diff --git a/sdk_v2/js/script/install.cjs b/sdk_v2/js/script/install.cjs index fb55fbe..412030d 100644 --- a/sdk_v2/js/script/install.cjs +++ b/sdk_v2/js/script/install.cjs @@ -55,7 +55,7 @@ const CORE_FEED = useNightly ? ORT_NIGHTLY_FEED : NUGET_FEED; const ARTIFACTS = [ { name: useWinML ? 'Microsoft.AI.Foundry.Local.Core.WinML' : 'Microsoft.AI.Foundry.Local.Core', - version: useNightly ? undefined : useWinML ? '0.9.0.2-dev-20260226T191541-2b332047' : '0.9.0.4-dev-20260226T191638-2b332047', // Set later using resolveLatestVersion if undefined + version: useNightly ? undefined : useWinML ? '0.9.0.2-dev-20260226T191541-2b332047' : '0.9.0-dev-20260227T222239-2a3af92', // Set later using resolveLatestVersion if undefined feed: ORT_NIGHTLY_FEED }, { @@ -271,12 +271,30 @@ async function installPackage(artifact, tempDir) { } } +// ORT 1.24.1 has a bug: https://github.com/microsoft/onnxruntime/issues/27263 +// Resolve it by creating a symlink to the correct binary on Linux and macOS. +function createOnnxRuntimeSymlinks() { + if (os.platform() === 'win32') return; + + const ext = os.platform() === 'darwin' ? '.dylib' : '.so'; + const libName = `libonnxruntime${ext}`; + const linkName = `onnxruntime.dll`; + const libPath = path.join(BIN_DIR, libName); + const linkPath = path.join(BIN_DIR, linkName); + if (fs.existsSync(libPath) && !fs.existsSync(linkPath)) { + fs.symlinkSync(libName, linkPath); + console.log(`[foundry-local] Created symlink: ${linkName} -> ${libName}`); + } +} + + async function main() { const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'foundry-install-')); try { for (const artifact of ARTIFACTS) { await installPackage(artifact, tempDir); } + createOnnxRuntimeSymlinks(); console.log('[foundry-local] ✓ Installation complete.'); } catch (e) { console.error(`[foundry-local] Installation failed: ${e.message}`);