From 36106934ef1cb7d514b67b923ca594ed0253ac8d Mon Sep 17 00:00:00 2001 From: Frank <65999885+FrankXie05@users.noreply.github.com> Date: Fri, 17 Mar 2023 08:54:59 +0800 Subject: [PATCH] [onnxruntime-gpu] update version to 1.14.1 (#30228) * [onnxruntime-gpu] update version to 1.14.1 * update version * change to new function * version --- ports/onnxruntime-gpu/portfile.cmake | 13 +++++-------- ports/onnxruntime-gpu/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/o-/onnxruntime-gpu.json | 5 +++++ 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/ports/onnxruntime-gpu/portfile.cmake b/ports/onnxruntime-gpu/portfile.cmake index fa28c8a71a..75ba99bc23 100644 --- a/ports/onnxruntime-gpu/portfile.cmake +++ b/ports/onnxruntime-gpu/portfile.cmake @@ -1,18 +1,15 @@ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) -vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION} - vcpkg_download_distfile(ARCHIVE URLS "https://github.com/microsoft/onnxruntime/releases/download/v${VERSION}/onnxruntime-win-x64-gpu-${VERSION}.zip" FILENAME "onnxruntime-win-x64-gpu-${VERSION}.zip" - SHA512 eea4d95189da1dc0358673d09d66b6c2880cb66333d76d6c6d54cacc87ac04a7a52f4aa911da02c40bc86718e584d130e492d7a0499ed0daa323194c05d41960 + SHA512 f927302daa7b778eaf15693e446303060c0a38dfd18b8026c28ac65f545dd463ee7cd3f0aa6bfe59301c5c85ccf4512584ed968ac42ce8d78c12a79d8af2de1e ) -vcpkg_extract_source_archive_ex( - OUT_SOURCE_PATH SOURCE_PATH - ARCHIVE ${ARCHIVE} +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" NO_REMOVE_ONE_LEVEL - REF ${VERSION} ) file(MAKE_DIRECTORY @@ -88,4 +85,4 @@ file(COPY ${SOURCE_PATH}/onnxruntime-win-x64-gpu-${VERSION}/lib/onnxruntime_prov file(COPY ${SOURCE_PATH}/onnxruntime-win-x64-gpu-${VERSION}/lib/onnxruntime_providers_cuda.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) # # Handle copyright -file(INSTALL ${SOURCE_PATH}/onnxruntime-win-x64-gpu-${VERSION}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/onnxruntime-win-x64-gpu-${VERSION}/LICENSE") diff --git a/ports/onnxruntime-gpu/vcpkg.json b/ports/onnxruntime-gpu/vcpkg.json index 8736f00965..af971193bc 100644 --- a/ports/onnxruntime-gpu/vcpkg.json +++ b/ports/onnxruntime-gpu/vcpkg.json @@ -1,6 +1,6 @@ { "name": "onnxruntime-gpu", - "version": "1.12.1", + "version": "1.14.1", "description": "onnxruntime (GPU)", "homepage": "https://github.com/microsoft/onnxruntime", "license": "MIT", diff --git a/versions/baseline.json b/versions/baseline.json index 0642af7dd8..ece2622a75 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5657,7 +5657,7 @@ "port-version": 0 }, "onnxruntime-gpu": { - "baseline": "1.12.1", + "baseline": "1.14.1", "port-version": 0 }, "oof": { diff --git a/versions/o-/onnxruntime-gpu.json b/versions/o-/onnxruntime-gpu.json index ff5b42ffa0..aade8e0e70 100644 --- a/versions/o-/onnxruntime-gpu.json +++ b/versions/o-/onnxruntime-gpu.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "74bcaaeb54e99b6aee5e6c7560e6fa9935bcbf28", + "version": "1.14.1", + "port-version": 0 + }, { "git-tree": "c5e4f24f9b3441c5860d6c891e95251ba69193d1", "version": "1.12.1",