diff --git a/actions/run-build-script-in-docker/action.yml b/actions/run-build-script-in-docker/action.yml index 625f011..030c95c 100644 --- a/actions/run-build-script-in-docker/action.yml +++ b/actions/run-build-script-in-docker/action.yml @@ -34,6 +34,10 @@ inputs: description: 'Value for NIGHTLY_BUILD env var' required: false default: '1' + use_vcpkg: + description: 'Use vcpkg tool' + required: false + default: 'true' runs: using: 'node24' diff --git a/src/run-build-script-in-docker/index.js b/src/run-build-script-in-docker/index.js index a71a05e..ce6efa0 100644 --- a/src/run-build-script-in-docker/index.js +++ b/src/run-build-script-in-docker/index.js @@ -78,6 +78,7 @@ async function run() { const pythonPathPrefix = core.getInput('python_path_prefix'); // Get prefix input const allowOpset = core.getInput('allow_released_opset_only'); const nightlyBuild = core.getInput('nightly_build'); + const useVcpkg = core.getBooleanInput('use_vcpkg'); // --- Validate Mode --- let buildPyArg; @@ -156,8 +157,7 @@ async function run() { '--skip_submodule_sync', '--build_shared_lib', '--parallel', - '--use_vcpkg', - '--use_vcpkg_ms_internal_asset_cache', + ...(useVcpkg ? ['--use_vcpkg', '--use_vcpkg_ms_internal_asset_cache'] : []), ...(enableOnnxTestsFlag ? ['--enable_onnx_tests'] : []), ...epFlags, extraBuildFlags,