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::" diff --git a/github-actions/install-dep-xgboost/action.yml b/github-actions/install-dep-xgboost/action.yml index f990a1d..51c8e7a 100644 --- a/github-actions/install-dep-xgboost/action.yml +++ b/github-actions/install-dep-xgboost/action.yml @@ -17,13 +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 vcpkg) - shell: bash - if: runner.os == 'Windows' - run: | - echo "::group::Install XGBoost (via vcpkg)" - vcpkg install xgboost:x64-windows - VCPKG_PREFIX="$(cygpath -w "$VCPKG_INSTALLATION_ROOT")\\installed\\x64-windows" - echo "PKG_CONFIG_PATH=${VCPKG_PREFIX}\\lib\\pkgconfig" >> "$GITHUB_ENV" - echo "${VCPKG_PREFIX}\\bin" >> "$GITHUB_PATH" - echo "::endgroup::"