Skip to content

Commit 9f07ece

Browse files
Merge remote-tracking branch 'origin/master' into sync_msft_24042026
2 parents e662bf1 + 0992717 commit 9f07ece

163 files changed

Lines changed: 11392 additions & 2200 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/linux_cuda_ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
runs-on:
4545
- self-hosted
4646
- "1ES.Pool=onnxruntime-github-linux-a10"
47+
- "1ES.ImageOverride=onnxruntime-ubuntu2204-CUDA-A10-Test"
4748
- "JobId=test-linux-cuda-x64-release-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
4849
permissions:
4950
contents: read

.github/workflows/linux_tensorrt_ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,33 @@ jobs:
3838
secrets:
3939
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Pass token for reusable workflow needs (e.g., docker build action)
4040

41+
build-linux-TensorRT-CUDA-Minimal-x64-release:
42+
name: Build Linux TensorRT CUDA Minimal x64 Release
43+
# Build-only job for CUDA minimal build (no tests, no unit tests)
44+
uses: ./.github/workflows/reusable_linux_build.yml
45+
with:
46+
pool_name: "onnxruntime-github-Ubuntu2204-AMD-CPU"
47+
build_config: Release
48+
architecture: x64
49+
dockerfile_path: tools/ci_build/github/linux/docker/Dockerfile.manylinux2_28_cuda
50+
docker_build_args: '--build-arg BASEIMAGE=onnxruntimebuildcache.azurecr.io/internal/azureml/onnxruntime/build/cuda12_x64_almalinux8_gcc14:20251017.1 --build-arg TRT_VERSION=10.14.1.48-1.cuda12.9 --network=host'
51+
docker_image_repo: onnxruntimetensorrt86gpubuild
52+
extra_build_flags: '--use_binskim_compliant_compile_flags --build_wheel --cuda_version=12.8 --cuda_home=/usr/local/cuda-12.8 --cudnn_home=/usr/local/cuda-12.8 --use_tensorrt --tensorrt_home /usr --build_java --enable_cuda_minimal_build --disable_generation_ops --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES=86 onnxruntime_BUILD_UNIT_TESTS=OFF'
53+
python_path_prefix: 'PATH=/opt/python/cp310-cp310/bin:$PATH'
54+
run_tests: false
55+
upload_build_output: false
56+
execution_providers: 'cuda tensorrt'
57+
job_identifier: build-linux-TensorRT-CUDA-Minimal-x64-release
58+
secrets:
59+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
4161
test-linux-TensorRT-x64-release:
4262
name: Test Linux TensorRT x64 Release
4363
needs: build-linux-TensorRT-x64-release
4464
runs-on:
4565
- self-hosted
4666
- "1ES.Pool=onnxruntime-github-linux-a10"
67+
- "1ES.ImageOverride=onnxruntime-ubuntu2204-CUDA-A10-Test"
4768
- "JobId=test-linux-TensorRT-x64-release-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
4869
permissions:
4970
contents: read

.github/workflows/publish-c-apidocs.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
name: Update C/C++ API Docs
22

3-
# Run when the C API changes or every month so that the artifact does not expire
3+
# Run when the C API changes or every week so that the artifact does not expire.
4+
# Also runs on pull requests that touch relevant files so doc generation errors
5+
# are caught early. The artifact is only published on the main branch.
46
on:
57
push:
68
branches:
79
- main
810
paths:
911
- include/onnxruntime/core/session/**
1012
- orttraining/orttraining/training_api/include/**
13+
- docs/c_cxx/**
14+
pull_request:
15+
paths:
16+
- include/onnxruntime/core/session/**
17+
- orttraining/orttraining/training_api/include/**
18+
- docs/c_cxx/**
1119
schedule:
1220
- cron: '0 0 * * 0'
1321
workflow_dispatch:
1422

1523
concurrency:
16-
group: "apidocs-c"
17-
cancel-in-progress: false
24+
group: "apidocs-c-${{ github.ref }}"
25+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1826

1927
permissions:
2028
contents: write
@@ -46,9 +54,10 @@ jobs:
4654
- name: Move C/C++ docs into site
4755
run: |
4856
mkdir -p _site/docs/api
49-
rm -rf site/docs/api/c
57+
rm -rf _site/docs/api/c
5058
mv build/doxygen/html _site/docs/api/c
5159
- name: Upload new site
60+
if: github.ref == 'refs/heads/main'
5261
uses: actions/upload-artifact@v6
5362
with:
5463
name: onnxruntime-c-apidocs

.github/workflows/publish-csharp-apidocs.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
name: Update C# API Docs
22

3-
# Run when the C# API changes or every month so that the artifact does not expire
3+
# Run when the C# API changes or every week so that the artifact does not expire.
4+
# Also runs on pull requests that touch relevant files so doc generation errors
5+
# are caught early. The artifact is only published on the main branch.
46
on:
57
push:
68
branches:
79
- main
810
paths:
911
- csharp/**
12+
pull_request:
13+
paths:
14+
- csharp/**
1015
schedule:
1116
- cron: '0 0 * * 0'
1217
workflow_dispatch:
1318

1419
concurrency:
15-
group: "apidocs-csharp"
16-
cancel-in-progress: false
20+
group: "apidocs-csharp-${{ github.ref }}"
21+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1722

1823
permissions:
1924
contents: write
@@ -60,6 +65,7 @@ jobs:
6065
if (Test-Path $OutputDirectory) { Remove-Item -Recurse -Force $OutputDirectory }
6166
Move-Item -Path csharp\ApiDocs\csharp -Destination $OutputDirectory
6267
- name: Upload docs artifact
68+
if: github.ref == 'refs/heads/main'
6369
uses: actions/upload-artifact@v6
6470
with:
6571
name: onnxruntime-csharp-apidocs

.github/workflows/publish-java-apidocs.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
name: Update Java API Docs
22

3-
# Run when the Java API changes or every month so that the artifact does not expire
3+
# Run when the Java API changes or every week so that the artifact does not expire.
4+
# Also runs on pull requests that touch relevant files so doc generation errors
5+
# are caught early. The artifact is only published on the main branch.
46
on:
57
push:
68
branches:
79
- main
810
paths:
911
- java/**
12+
pull_request:
13+
paths:
14+
- java/**
1015
schedule:
1116
- cron: '0 0 * * 0'
1217
workflow_dispatch:
1318

1419
concurrency:
15-
group: "apidocs-java"
16-
cancel-in-progress: false
20+
group: "apidocs-java-${{ github.ref }}"
21+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1722

1823
permissions:
1924
contents: write
@@ -47,6 +52,7 @@ jobs:
4752
mkdir -p _site/docs/api
4853
mv java/build/docs/javadoc _site/docs/api/java
4954
- name: Upload new site
55+
if: github.ref == 'refs/heads/main'
5056
uses: actions/upload-artifact@v6
5157
with:
5258
name: onnxruntime-java-apidocs

.github/workflows/publish-js-apidocs.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
name: Update JS API Docs
22

3-
# Run when the JS API changes or every month so that the artifact does not expire
3+
# Run when the JS API changes or every week so that the artifact does not expire.
4+
# Also runs on pull requests that touch relevant files so doc generation errors
5+
# are caught early. The artifact is only published on the main branch.
46
on:
57
push:
68
branches:
79
- main
810
paths:
911
- js/common/**
12+
pull_request:
13+
paths:
14+
- js/common/**
1015
schedule:
1116
- cron: '0 0 * * 0'
1217
workflow_dispatch:
1318

1419
concurrency:
15-
group: "apidocs-js"
16-
cancel-in-progress: false
20+
group: "apidocs-js-${{ github.ref }}"
21+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1722

1823
permissions:
1924
contents: write
@@ -47,6 +52,7 @@ jobs:
4752
mkdir -p _site/docs/api
4853
mv js/common/docs _site/docs/api/js
4954
- name: Upload docs artifact
55+
if: github.ref == 'refs/heads/main'
5056
uses: actions/upload-artifact@v6
5157
with:
5258
name: onnxruntime-node-apidocs

.github/workflows/publish-objectivec-apidocs.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
name: Update Objective-C API Docs
22

3-
# Run when the Objective-C API changes or every month so that the artifact does not expire
3+
# Run when the Objective-C API changes or every week so that the artifact does not expire.
4+
# Also runs on pull requests that touch relevant files so doc generation errors
5+
# are caught early. The artifact is only published on the main branch.
46
on:
57
push:
68
branches:
79
- main
810
paths:
911
- objectivec/**
12+
pull_request:
13+
paths:
14+
- objectivec/**
1015
schedule:
1116
- cron: '0 0 * * 0'
1217
workflow_dispatch:
1318

1419
concurrency:
15-
group: "apidocs-objectivec"
16-
cancel-in-progress: false
20+
group: "apidocs-objectivec-${{ github.ref }}"
21+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1722

1823
permissions:
1924
contents: write
@@ -52,6 +57,7 @@ jobs:
5257
shell: bash
5358

5459
- name: Upload new site
60+
if: github.ref == 'refs/heads/main'
5561
uses: actions/upload-artifact@v6
5662
with:
5763
name: onnxruntime-objectivec-apidocs

.github/workflows/publish-python-apidocs.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
name: Update Python API Docs
22

3-
# Run when the Python API changes or every month so that the artifact does not expire
3+
# Run when the Python API changes or every week so that the artifact does not expire.
4+
# Also runs on pull requests that touch relevant files so doc generation errors
5+
# are caught early. The artifact is only published on the main branch.
46
on:
57
push:
68
branches:
79
- main
810
paths:
911
- onnxruntime/python/**
1012
- docs/python/**
13+
pull_request:
14+
paths:
15+
- onnxruntime/python/**
16+
- docs/python/**
1117
schedule:
1218
- cron: '0 0 * * 0'
1319
workflow_dispatch:
1420

1521
concurrency:
16-
group: "apidocs-python"
17-
cancel-in-progress: true
22+
group: "apidocs-python-${{ github.ref }}"
23+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1824

1925
permissions:
2026
contents: write
@@ -54,6 +60,7 @@ jobs:
5460
mkdir -p _site/docs/api/
5561
mv build/docs/html _site/docs/api/python
5662
- name: Upload docs artifact
63+
if: github.ref == 'refs/heads/main'
5764
uses: actions/upload-artifact@v6
5865
with:
5966
name: onnxruntime-python-apidocs

0 commit comments

Comments
 (0)