Skip to content

Commit

Permalink
support onnxruntime v1.17.1 (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Mar 2, 2024
1 parent d569643 commit a65643b
Show file tree
Hide file tree
Showing 27 changed files with 166 additions and 166 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-go-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -432,5 +432,5 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: tts-waves
name: tts-waves-${{ matrix.os }}-${{ matrix.arch }}
path: tts-waves
2 changes: 1 addition & 1 deletion build-android-arm64-v8a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fi

echo "ANDROID_NDK: $ANDROID_NDK"
sleep 1
onnxruntime_version=1.17.0
onnxruntime_version=1.17.1

if [ ! -f $onnxruntime_version/jni/arm64-v8a/libonnxruntime.so ]; then
mkdir -p $onnxruntime_version
Expand Down
2 changes: 1 addition & 1 deletion build-android-armv7-eabi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fi
echo "ANDROID_NDK: $ANDROID_NDK"
sleep 1

onnxruntime_version=1.17.0
onnxruntime_version=1.17.1

if [ ! -f $onnxruntime_version/jni/armeabi-v7a/libonnxruntime.so ]; then
mkdir -p $onnxruntime_version
Expand Down
2 changes: 1 addition & 1 deletion build-android-x86-64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fi
echo "ANDROID_NDK: $ANDROID_NDK"
sleep 1

onnxruntime_version=1.17.0
onnxruntime_version=1.17.1

if [ ! -f $onnxruntime_version/jni/x86_64/libonnxruntime.so ]; then
mkdir -p $onnxruntime_version
Expand Down
2 changes: 1 addition & 1 deletion build-android-x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fi
echo "ANDROID_NDK: $ANDROID_NDK"
sleep 1

onnxruntime_version=1.17.0
onnxruntime_version=1.17.1

if [ ! -f $onnxruntime_version/jni/x86/libonnxruntime.so ]; then
mkdir -p $onnxruntime_version
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-aarch64-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-aarch64-static_lib-1.17.0.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-aarch64-static_lib-1.17.0.zip")
set(onnxruntime_HASH "SHA256=8be35fa5d4c9cc42075bf90d1a095a44ab6bf4fc7306141aa1169fa49b382cc2")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-aarch64-static_lib-1.17.1.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-aarch64-static_lib-1.17.1.zip")
set(onnxruntime_HASH "SHA256=831b9a3869501040b4399de85f34c4f170e2bcbd41881edaeb553f8dc4080985")

# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
/tmp/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-static_lib-1.17.1.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.1.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.1.zip
/tmp/onnxruntime-linux-aarch64-static_lib-1.17.1.zip
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.17.1.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-aarch64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-linux-aarch64-1.17.0.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-linux-aarch64-1.17.0.tgz")
set(onnxruntime_HASH "SHA256=ee5069252f549ef94759b6b60bdf10b2dc2cd71d064a7045dd66a052f956a68b")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-aarch64-1.17.1.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-aarch64-1.17.1.tgz")
set(onnxruntime_HASH "SHA256=70b6f536bb7ab5961d128e9dbd192368ac1513bffb74fe92f97aac342fbd0ac1")

# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-1.17.0.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-1.17.0.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-1.17.0.tgz
/tmp/onnxruntime-linux-aarch64-1.17.0.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.17.0.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-1.17.1.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-1.17.1.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-1.17.1.tgz
/tmp/onnxruntime-linux-aarch64-1.17.1.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.17.1.tgz
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-arm-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-arm-static_lib-1.17.0.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-arm-static_lib-1.17.0.zip")
set(onnxruntime_HASH "SHA256=36a30732b2ccebdaabfee6e1e4473ce65d90cab12c6d2136874e847baeaa1571")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-arm-static_lib-1.17.1.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-arm-static_lib-1.17.1.zip")
set(onnxruntime_HASH "SHA256=3f2ba38156d2facfb732c0fe53bc1eaaf2791d9a91dd240380e3d53716798b09")

# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-linux-arm-static_lib-1.17.0.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.17.0.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.17.0.zip
/tmp/onnxruntime-linux-arm-static_lib-1.17.0.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.17.0.zip
$ENV{HOME}/Downloads/onnxruntime-linux-arm-static_lib-1.17.1.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.17.1.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.17.1.zip
/tmp/onnxruntime-linux-arm-static_lib-1.17.1.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.17.1.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-arm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-arm-1.17.0.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-arm-1.17.0.zip")
set(onnxruntime_HASH "SHA256=6bdddba15193336ed26b7fbcc7e487f774cf52c8917899cc5b1d214089e6e855")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-arm-1.17.1.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-arm-1.17.1.zip")
set(onnxruntime_HASH "SHA256=08eed09b35a015fbf3a068baf6388a3b447d24dec62b75cd591a01179d0bfe7b")

# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-linux-arm-1.17.0.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-1.17.0.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-1.17.0.zip
/tmp/onnxruntime-linux-arm-1.17.0.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-1.17.0.zip
$ENV{HOME}/Downloads/onnxruntime-linux-arm-1.17.1.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-1.17.1.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-1.17.1.zip
/tmp/onnxruntime-linux-arm-1.17.1.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-1.17.1.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-x86_64-gpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ if(NOT SHERPA_ONNX_ENABLE_GPU)
message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}")
endif()

set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-linux-x64-gpu-1.17.0.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-linux-x64-gpu-1.17.0.tgz")
set(onnxruntime_HASH "SHA256=27cfa22af7301868b55220f8733361889286b30be0569a8f46abb63e90342180")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-gpu-1.17.1.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-gpu-1.17.1.tgz")
set(onnxruntime_HASH "SHA256=613c53745ea4960ed368f6b3ab673558bb8561c84a8fa781b4ea7fb4a4340be4")

# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.17.0.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.17.0.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.17.0.tgz
/tmp/onnxruntime-linux-x64-gpu-1.17.0.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.17.0.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.17.1.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.17.1.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.17.1.tgz
/tmp/onnxruntime-linux-x64-gpu-1.17.1.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.17.1.tgz
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-x86_64-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip")
set(onnxruntime_HASH "SHA256=4217302eac0d645b4c2b5fa13d1627c0384d2531615b4a51a52326c01568cc0c")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip")
set(onnxruntime_HASH "SHA256=44377e9b7eef618afd10216a597a4d2a09a74727cbc5bdd7d86ca2b6e00a28cb")

# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip
/tmp/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip
$ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip
/tmp/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-x86_64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-linux-x64-1.17.0.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-linux-x64-1.17.0.tgz")
set(onnxruntime_HASH "SHA256=efc344d54d1969446ff5d3e55b54e205c6579c06333ecf1d34a04215eefae7c6")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-1.17.1.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-1.17.1.tgz")
set(onnxruntime_HASH "SHA256=89b153af88746665909c758a06797175ae366280cbf25502c41eb5955f9a555e")

# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-linux-x64-1.17.0.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-1.17.0.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-1.17.0.tgz
/tmp/onnxruntime-linux-x64-1.17.0.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-1.17.0.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-x64-1.17.1.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-1.17.1.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-1.17.1.tgz
/tmp/onnxruntime-linux-x64-1.17.1.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-1.17.1.tgz
)

foreach(f IN LISTS possible_file_locations)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-arm64-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-osx-arm64-static_lib-1.17.0.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-osx-arm64-static_lib-1.17.0.zip")
set(onnxruntime_HASH "SHA256=07798f7c91164e6870c438a3a1aeae0768b568bcefd71a3416a4c7a42837e31a")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-osx-arm64-static_lib-1.17.1.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-osx-arm64-static_lib-1.17.1.zip")
set(onnxruntime_HASH "SHA256=b88a4017251c159fea005aefe836bd0cf4d0bc7454e2810784f84a42143f17eb")

# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-static_lib-1.17.0.zip
${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.17.0.zip
${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.17.0.zip
/tmp/onnxruntime-osx-arm64-static_lib-1.17.0.zip
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-static_lib-1.17.1.zip
${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.17.1.zip
${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.17.1.zip
/tmp/onnxruntime-osx-arm64-static_lib-1.17.1.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-arm64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ if(NOT BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-osx-arm64-1.17.0.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-osx-arm64-1.17.0.tgz")
set(onnxruntime_HASH "SHA256=f72a2bcca40e2650756c6b96c69ef031236aaab1b98673e744da4eef0c4bddbd")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-osx-arm64-1.17.1.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-osx-arm64-1.17.1.tgz")
set(onnxruntime_HASH "SHA256=89566f424624a7ad9a7d9d5e413c44b9639a994d7171cf409901d125b16e2bb3")

# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.17.0.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-1.17.0.tgz
${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-1.17.0.tgz
/tmp/onnxruntime-osx-arm64-1.17.0.tgz
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.17.1.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-1.17.1.tgz
${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-1.17.1.tgz
/tmp/onnxruntime-osx-arm64-1.17.1.tgz
)

foreach(f IN LISTS possible_file_locations)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-universal-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ if(BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-osx-universal2-static_lib-1.17.0.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-osx-universal2-static_lib-1.17.0.zip")
set(onnxruntime_HASH "SHA256=f5b0367e1be12e8697b34f41a0cec8dc92fc6c445bd5f39865d725e873ad0550")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-osx-universal2-static_lib-1.17.1.zip")
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-osx-universal2-static_lib-1.17.1.zip")
set(onnxruntime_HASH "SHA256=45599dbd2fb9dd52d6505930c0e82ca165391e222a68f5606b9ea9d4f3922e15")

# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-osx-universal2-static_lib-1.17.0.zip
${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-static_lib-1.17.0.zip
${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-static_lib-1.17.0.zip
/tmp/onnxruntime-osx-universal2-static_lib-1.17.0.zip
$ENV{HOME}/Downloads/onnxruntime-osx-universal2-static_lib-1.17.1.zip
${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-static_lib-1.17.1.zip
${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-static_lib-1.17.1.zip
/tmp/onnxruntime-osx-universal2-static_lib-1.17.1.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-universal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ if(NOT BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-osx-universal2-1.17.0.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-osx-universal2-1.17.0.tgz")
set(onnxruntime_HASH "SHA256=d6c81efc9be29d504d5f4cc01fec1317861b0ab34f172ad5e6198b486fa43cfd")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-osx-universal2-1.17.1.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-osx-universal2-1.17.1.tgz")
set(onnxruntime_HASH "SHA256=9fa57fa6f202a373599377ef75064ae568fda8da838632b26a86024c7378d306")

# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.17.0.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-1.17.0.tgz
${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-1.17.0.tgz
/tmp/onnxruntime-osx-universal2-1.17.0.tgz
$ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.17.1.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-1.17.1.tgz
${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-1.17.1.tgz
/tmp/onnxruntime-osx-universal2-1.17.1.tgz
)

foreach(f IN LISTS possible_file_locations)
Expand Down
Loading

0 comments on commit a65643b

Please sign in to comment.