Skip to content

Commit 053d6e9

Browse files
author
Changming Sun
committed
update
1 parent 3b0b549 commit 053d6e9

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/linux_ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@
22
# It leverages a reusable workflow (`reusable_linux_build.yml`) to handle the core build and test logic
33
# within Docker containers, ensuring a consistent environment.
44
#
5-
# The workflow consists of four parallel jobs targeting different combinations:
5+
# The workflow consists of five parallel jobs targeting different combinations:
66
# - build-linux-x64-debug: Builds/tests Debug config on Linux x64 (AMD CPU pool), enables AddressSanitizer.
7-
# - build-linux-x64-release: Builds/tests Release config on Linux x64 (AMD CPU pool), includes wheel/C#/benchmark flags.
8-
# - build-linux-arm64-debug: Builds/tests Debug config on Linux arm64 (ARM CPU pool), no AddressSanitizer because otherwise it will take more than 4 hours.
9-
# - build-linux-arm64-release: Builds/tests Release config on Linux arm64 (ARM CPU pool), includes wheel/C#/benchmark flags.
7+
# - build-linux-x64-release: Builds/tests Release config on Linux x64 (AMD CPU pool), includes wheel/nuget/benchmark flags.
8+
# - orttraining-linux-ci-pipeline: Builds/tests Release config with Training enabled (--enable_training) on Linux x64 (AMD CPU pool).
9+
# - build-linux-arm64-debug: Builds/tests Debug config on Linux arm64 (ARM CPU pool); ASan is disabled due to excessive runtime. Includes wheel build.
10+
# - build-linux-arm64-release: Builds/tests Release config on Linux arm64 (ARM CPU pool), includes wheel/benchmark flags.
1011
#
1112
# Each job calls the reusable workflow, passing specific parameters:
1213
# - target architecture (x64 or arm64)
1314
# - build configuration (Debug or Release)
1415
# - runner pool name
1516
# - path to the appropriate Dockerfile
1617
# - Docker image name for caching/use
17-
# - configuration-specific build flags (e.g., --enable_address_sanitizer for Debug, --build_wheel for Release)
18+
# - configuration-specific build flags (e.g., --enable_address_sanitizer, --enable_training, --build_wheel)
1819

1920
name: Linux CI
2021

@@ -54,7 +55,7 @@ jobs:
5455
dockerfile_path: tools/ci_build/github/linux/docker/Dockerfile.manylinux2_28_cpu
5556
docker_image_repo: onnxruntimecpubuildpythonx64
5657
extra_build_flags: '--use_binskim_compliant_compile_flags --build_wheel --build_nuget --enable_transformers_tool_test --cmake_extra_defines onnxruntime_BUILD_BENCHMARKS=ON'
57-
python_path_prefix: 'PATH=/opt/python/cp310-cp310/bin:\$PATH'
58+
python_path_prefix: 'PATH=/opt/python/cp310-cp310/bin:\$PATH' # $ needs escaping in single quotes
5859
secrets:
5960
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6061

@@ -66,9 +67,9 @@ jobs:
6667
build_config: Release
6768
architecture: x64
6869
dockerfile_path: tools/ci_build/github/linux/docker/Dockerfile.manylinux2_28_cpu
69-
docker_image_repo: onnxruntimecpubuildpythonx64
70+
docker_image_repo: onnxruntimecpubuildpythonx64 # Shares image with standard x64 release
7071
extra_build_flags: '--enable_training --use_binskim_compliant_compile_flags --build_wheel --build_nuget --enable_transformers_tool_test --cmake_extra_defines onnxruntime_BUILD_BENCHMARKS=ON'
71-
python_path_prefix: 'PATH=/opt/python/cp310-cp310/bin:\$PATH'
72+
python_path_prefix: 'PATH=/opt/python/cp310-cp310/bin:\$PATH' # $ needs escaping in single quotes
7273
secrets:
7374
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7475

@@ -82,6 +83,7 @@ jobs:
8283
architecture: arm64
8384
dockerfile_path: tools/ci_build/github/linux/docker/inference/aarch64/default/cpu/Dockerfile
8485
docker_image_repo: onnxruntimecpubuildciaarch64
86+
# ASan disabled due to excessive runtime (>4hr). Includes wheel build for basic checks.
8587
extra_build_flags: '--use_binskim_compliant_compile_flags --build_wheel'
8688
secrets:
8789
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -95,7 +97,7 @@ jobs:
9597
architecture: arm64
9698
dockerfile_path: tools/ci_build/github/linux/docker/inference/aarch64/python/cpu/Dockerfile
9799
docker_image_repo: onnxruntimecpubuildpythonaarch64
98-
extra_build_flags: '--use_binskim_compliant_compile_flags --build_wheel --cmake_extra_defines onnxruntime_BUILD_BENCHMARKS=ON'
99-
python_path_prefix: 'PATH=/opt/python/cp310-cp310/bin:\$PATH'
100+
extra_build_flags: '--use_binskim_compliant_compile_flags --build_wheel --cmake_extra_defines onnxruntime_BUILD_BENCHMARKS=ON'
101+
python_path_prefix: 'PATH=/opt/python/cp310-cp310/bin:\$PATH' # $ needs escaping in single quotes
100102
secrets:
101103
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)