Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions github-actions/install-dep-onnxruntime/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if: runner.os == 'Linux'
run: |
echo "::group::Install ONNX Runtime (via apt-get)"
sudo apt-get -y update && sudo apt-get install --no-install-recommends -y libonnxruntime-dev

Check warning on line 10 in github-actions/install-dep-onnxruntime/action.yml

View workflow job for this annotation

GitHub Actions / ci

10:81 [line-length] line too long (100 > 80 characters)
echo "::endgroup::"
- name: Install ONNX Runtime (via brew)
shell: bash
Expand All @@ -16,13 +16,20 @@
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"

Check warning on line 25 in github-actions/install-dep-onnxruntime/action.yml

View workflow job for this annotation

GitHub Actions / ci

25:81 [line-length] line too long (87 > 80 characters)
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"

Check warning on line 27 in github-actions/install-dep-onnxruntime/action.yml

View workflow job for this annotation

GitHub Actions / ci

27:81 [line-length] line too long (107 > 80 characters)
curl -fsSL "https://github.com/microsoft/onnxruntime/releases/download/v${ORT_VER}/onnxruntime-win-x64-${ORT_VER}.zip" -o /tmp/ort.zip

Check warning on line 28 in github-actions/install-dep-onnxruntime/action.yml

View workflow job for this annotation

GitHub Actions / ci

28:81 [line-length] line too long (142 > 80 characters)
unzip -q /tmp/ort.zip -d /tmp/ort
cp -r "/tmp/ort/onnxruntime-win-x64-${ORT_VER}/include/"* "$VCPKG_PREFIX_UNIX/include/onnxruntime/"

Check warning on line 30 in github-actions/install-dep-onnxruntime/action.yml

View workflow job for this annotation

GitHub Actions / ci

30:81 [line-length] line too long (107 > 80 characters)
cp -r "/tmp/ort/onnxruntime-win-x64-${ORT_VER}/lib/"*.lib "$VCPKG_PREFIX_UNIX/lib/"

Check warning on line 31 in github-actions/install-dep-onnxruntime/action.yml

View workflow job for this annotation

GitHub Actions / ci

31:81 [line-length] line too long (91 > 80 characters)
cp -r "/tmp/ort/onnxruntime-win-x64-${ORT_VER}/lib/"*.dll "$VCPKG_PREFIX_UNIX/bin/"

Check warning on line 32 in github-actions/install-dep-onnxruntime/action.yml

View workflow job for this annotation

GitHub Actions / ci

32:81 [line-length] line too long (91 > 80 characters)
rm -rf /tmp/ort /tmp/ort.zip
echo "${VCPKG_PREFIX}\\bin" >> "$GITHUB_PATH"
echo "::endgroup::"
10 changes: 0 additions & 10 deletions github-actions/install-dep-xgboost/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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::"
Loading