From 9f48be28792a1eebe4dc4e5102dd391f7e3b0872 Mon Sep 17 00:00:00 2001 From: "C.J. Collier" Date: Tue, 1 Dec 2026 02:36:12 +0000 Subject: [PATCH 1/3] install-dep-xgboost: build from source via CMake on Windows (not in vcpkg) --- github-actions/install-dep-xgboost/action.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/github-actions/install-dep-xgboost/action.yml b/github-actions/install-dep-xgboost/action.yml index f990a1d..01a056b 100644 --- a/github-actions/install-dep-xgboost/action.yml +++ b/github-actions/install-dep-xgboost/action.yml @@ -17,13 +17,21 @@ runs: brew install xgboost pkg-config echo "PKG_CONFIG_PATH=$(brew --prefix)/lib/pkgconfig:${PKG_CONFIG_PATH:-}" >> "$GITHUB_ENV" echo "::endgroup::" - - name: Install XGBoost (via vcpkg) + - name: Install XGBoost (via CMake from source) shell: bash if: runner.os == 'Windows' run: | - echo "::group::Install XGBoost (via vcpkg)" - vcpkg install xgboost:x64-windows + echo "::group::Install XGBoost (via CMake from source)" VCPKG_PREFIX="$(cygpath -w "$VCPKG_INSTALLATION_ROOT")\\installed\\x64-windows" + VCPKG_PREFIX_UNIX="$(cygpath -u "$VCPKG_PREFIX")" + git clone --depth 1 --recursive --branch v2.1.3 https://github.com/dmlc/xgboost.git /tmp/xgboost-src + cmake -S /tmp/xgboost-src -B /tmp/xgboost-build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX="$VCPKG_PREFIX_UNIX" \ + -DBUILD_STATIC_LIB=OFF + cmake --build /tmp/xgboost-build --config Release --parallel + cmake --install /tmp/xgboost-build --config Release + rm -rf /tmp/xgboost-src /tmp/xgboost-build echo "PKG_CONFIG_PATH=${VCPKG_PREFIX}\\lib\\pkgconfig" >> "$GITHUB_ENV" echo "${VCPKG_PREFIX}\\bin" >> "$GITHUB_PATH" echo "::endgroup::" From 469ce5995b87562441c4ce4d5f46a0b97e7f3297 Mon Sep 17 00:00:00 2001 From: "C.J. Collier" Date: Tue, 1 Dec 2026 03:20:33 +0000 Subject: [PATCH 2/3] install-dep-onnxruntime: use official prebuilt Windows x64 zip (vcpkg port 404s) --- github-actions/install-dep-onnxruntime/action.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/github-actions/install-dep-onnxruntime/action.yml b/github-actions/install-dep-onnxruntime/action.yml index bce20fa..a88ebad 100644 --- a/github-actions/install-dep-onnxruntime/action.yml +++ b/github-actions/install-dep-onnxruntime/action.yml @@ -16,13 +16,20 @@ runs: echo "::group::Install ONNX Runtime (via brew)" brew install onnxruntime echo "::endgroup::" - - name: Install ONNX Runtime (via vcpkg) + - name: Install ONNX Runtime (prebuilt Windows x64) shell: bash if: runner.os == 'Windows' run: | - echo "::group::Install ONNX Runtime (via vcpkg)" - vcpkg install onnxruntime:x64-windows + echo "::group::Install ONNX Runtime (prebuilt Windows x64)" + ORT_VER="1.20.1" VCPKG_PREFIX="$(cygpath -w "$VCPKG_INSTALLATION_ROOT")\\installed\\x64-windows" - echo "PKG_CONFIG_PATH=${VCPKG_PREFIX}\\lib\\pkgconfig" >> "$GITHUB_ENV" + VCPKG_PREFIX_UNIX="$(cygpath -u "$VCPKG_PREFIX")" + mkdir -p "$VCPKG_PREFIX_UNIX/include/onnxruntime" "$VCPKG_PREFIX_UNIX/lib" "$VCPKG_PREFIX_UNIX/bin" + curl -fsSL "https://github.com/microsoft/onnxruntime/releases/download/v${ORT_VER}/onnxruntime-win-x64-${ORT_VER}.zip" -o /tmp/ort.zip + unzip -q /tmp/ort.zip -d /tmp/ort + cp -r "/tmp/ort/onnxruntime-win-x64-${ORT_VER}/include/"* "$VCPKG_PREFIX_UNIX/include/onnxruntime/" + cp -r "/tmp/ort/onnxruntime-win-x64-${ORT_VER}/lib/"*.lib "$VCPKG_PREFIX_UNIX/lib/" + cp -r "/tmp/ort/onnxruntime-win-x64-${ORT_VER}/lib/"*.dll "$VCPKG_PREFIX_UNIX/bin/" + rm -rf /tmp/ort /tmp/ort.zip echo "${VCPKG_PREFIX}\\bin" >> "$GITHUB_PATH" echo "::endgroup::" From 96480becadc0fa268bfe30bd31bc4f43973bf77d Mon Sep 17 00:00:00 2001 From: "C.J. Collier" Date: Tue, 1 Dec 2026 03:41:56 +0000 Subject: [PATCH 3/3] install-dep-xgboost: remove Windows step (no vcpkg port or C SDK zip) --- github-actions/install-dep-xgboost/action.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/github-actions/install-dep-xgboost/action.yml b/github-actions/install-dep-xgboost/action.yml index 01a056b..51c8e7a 100644 --- a/github-actions/install-dep-xgboost/action.yml +++ b/github-actions/install-dep-xgboost/action.yml @@ -17,21 +17,3 @@ runs: brew install xgboost pkg-config echo "PKG_CONFIG_PATH=$(brew --prefix)/lib/pkgconfig:${PKG_CONFIG_PATH:-}" >> "$GITHUB_ENV" echo "::endgroup::" - - name: Install XGBoost (via CMake from source) - shell: bash - if: runner.os == 'Windows' - run: | - echo "::group::Install XGBoost (via CMake from source)" - VCPKG_PREFIX="$(cygpath -w "$VCPKG_INSTALLATION_ROOT")\\installed\\x64-windows" - VCPKG_PREFIX_UNIX="$(cygpath -u "$VCPKG_PREFIX")" - git clone --depth 1 --recursive --branch v2.1.3 https://github.com/dmlc/xgboost.git /tmp/xgboost-src - cmake -S /tmp/xgboost-src -B /tmp/xgboost-build \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX="$VCPKG_PREFIX_UNIX" \ - -DBUILD_STATIC_LIB=OFF - cmake --build /tmp/xgboost-build --config Release --parallel - cmake --install /tmp/xgboost-build --config Release - rm -rf /tmp/xgboost-src /tmp/xgboost-build - echo "PKG_CONFIG_PATH=${VCPKG_PREFIX}\\lib\\pkgconfig" >> "$GITHUB_ENV" - echo "${VCPKG_PREFIX}\\bin" >> "$GITHUB_PATH" - echo "::endgroup::"