Skip to content
14 changes: 14 additions & 0 deletions .github/workflows/build-cs-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ jobs:
env:
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_PAT }}

# Fixes 'System.Security.Cryptography.CryptographicException' on Linux CI
- name: Configure Linux SSL and Certificates
if: ${{ inputs.platform == 'ubuntu' }}
run: |
# 1. OpenSSL 3 Compatibility (Fix SSL_ERROR_SSL)
sudo sed -i 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf

# 2. Generate and Trust .NET Dev Cert (imitating ca-certificate-import)
# Explicitly export as PEM so update-ca-certificates can consume it
dotnet dev-certs https --clean
dotnet dev-certs https -ep ./dotnet-dev-cert.crt --format Pem
sudo cp ./dotnet-dev-cert.crt /usr/local/share/ca-certificates/dotnet-dev-cert.crt
sudo update-ca-certificates

# /p:FoundryLocalCoreVersion="*-*" to always use nightly version of Foundry Local Core
- name: Restore dependencies
run: |
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/build-js-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ jobs:
env:
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_PAT }}

# Fixes 'System.Security.Cryptography.CryptographicException' on Linux CI
- name: Configure Linux SSL and Certificates
if: ${{ inputs.platform == 'ubuntu' }}
run: |
# 1. OpenSSL 3 Compatibility (Fix SSL_ERROR_SSL)
sudo sed -i 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf

# 2. Generate and Trust .NET Dev Cert (imitating ca-certificate-import)
# Explicitly export as PEM so update-ca-certificates can consume it
dotnet dev-certs https --clean
dotnet dev-certs https -ep ./dotnet-dev-cert.crt --format Pem
sudo cp ./dotnet-dev-cert.crt /usr/local/share/ca-certificates/dotnet-dev-cert.crt
sudo update-ca-certificates

- name: Format version for JS
shell: pwsh
run: |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/foundry-local-sdk-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,17 @@ jobs:
with:
version: '0.9.0.${{ github.run_number }}'
platform: 'macos'
secrets: inherit

build-cs-linux:
uses: ./.github/workflows/build-cs-steps.yml
with:
version: '0.9.0.${{ github.run_number }}'
platform: 'ubuntu'
secrets: inherit
build-js-linux:
uses: ./.github/workflows/build-js-steps.yml
with:
version: '0.9.0.${{ github.run_number }}'
platform: 'ubuntu'
secrets: inherit
10 changes: 5 additions & 5 deletions sdk_v2/js/script/install.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ const ARTIFACTS = [
feed: CORE_FEED
},
{
name: 'Microsoft.ML.OnnxRuntime.Foundry',
version: '1.23.2.1', // Hardcoded stable version
name: os.platform() === 'linux' ? 'Microsoft.ML.OnnxRuntime.Gpu.Linux' : 'Microsoft.ML.OnnxRuntime.Foundry',
version: os.platform() === 'linux' ? '1.23.2' : '1.23.2.1', // Hardcoded stable version
files: ['onnxruntime'],
feed: ORT_NIGHTLY_FEED
feed: os.platform() === 'linux' ? NUGET_FEED : ORT_NIGHTLY_FEED
},
{
name: useWinML ? 'Microsoft.ML.OnnxRuntimeGenAI.WinML' : 'Microsoft.ML.OnnxRuntimeGenAI.Foundry',
version: '0.11.2', // Hardcoded stable version
version: '0.12.0-dev-20260130-1069610-180ed1ac', // Hardcoded dev version (until we upload 0.12.0 to ORT or NuGet)
files: ['onnxruntime-genai'],
feed: NUGET_FEED
feed: ORT_NIGHTLY_FEED
}
];

Expand Down
Loading