Skip to content

Commit

Permalink
edit builder v1.16.3
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminwan committed Feb 14, 2024
1 parent c50c700 commit ddc8b74
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
ver:
- { onnx: v1.15.1, ndk: 22.1.7171670, gradle: 8.0.1 }
- { onnx: v1.16.3, ndk: 22.1.7171670, gradle: 8.5 }
list:
- { arch: armeabi-v7a, min: 19 }
- { arch: arm64-v8a, min: 21 }
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
fail-fast: false
matrix:
ver:
- { onnx: v1.15.1 }
- { onnx: v1.16.3 }

env:
SHARED_PKG_NAME: onnxruntime-${{ matrix.ver.onnx }}-android-shared
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ jobs:
matrix:
os_name: [ubuntu]
ver:
- { onnx: v1.15.1, cmake: 3.28.2, python: 3.8.18, gradle: 8.0.1, jdk: openjdk-8-jdk }
- { onnx: v1.16.3, cmake: 3.28.2, python: 3.8.18, gradle: 8.5, jdk: openjdk-8-jdk }
list:
- { os_ver: 18.04, os_id: bionic }
- { os_ver: 20.04, os_id: focal }
- { os_ver: 22.04, os_id: jammy }
arch:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:
fail-fast: false
matrix:
ver:
- { onnx: v1.15.1, gradle: 8.0.1 }
- { onnx: v1.16.3, gradle: 8.5 }
list:
- { os_ver: 11 }
- { os_ver: 12 }
- { os_ver: 13 }

runs-on: macos-${{ matrix.list.os_ver }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/musl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
ver:
- { onnx: v1.15.1, musl: 11.3.1 }
- { onnx: v1.16.3, musl: 11.3.1 }
arch:
[
aarch64-linux-musl,
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ jobs:
fail-fast: false
matrix:
ver:
- { onnx: v1.15.1 }
- { onnx: v1.16.3, gradle: 8.5 }
list:
- { win_ver: 2019, vs_name: vs2019, vs_ver: v142 }
- { win_ver: 2022, vs_name: vs2022, vs_ver: v143 }
crt:
[
Expand Down Expand Up @@ -45,6 +44,13 @@ jobs:
java-version: '8'
distribution: 'adopt'

- uses: gradle/actions/setup-gradle@v3
with:
gradle-version: ${{ matrix.ver.gradle }}

- name: test gradle
run: gradle --version

# 检出代码
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion build-onnxruntime-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function collectLibs() {
# shared lib
cmake --build . --config Release --target install
# rm -r -f install/bin
mv install/include/onnxruntime/core/session/* install/include
mv install/include/onnxruntime/* install/include
rm -rf install/include/onnxruntime
echo "set(OnnxRuntime_INCLUDE_DIRS \"\${CMAKE_CURRENT_LIST_DIR}/include\")" > install/OnnxRuntimeConfig.cmake
echo "include_directories(\${OnnxRuntime_INCLUDE_DIRS})" >> install/OnnxRuntimeConfig.cmake
Expand Down
4 changes: 2 additions & 2 deletions build-onnxruntime-musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function collectLibs() {
# shared lib
cmake --build . --config Release --target install
# rm -r -f install/bin
mv install/include/onnxruntime/core/session/* install/include
mv install/include/onnxruntime/* install/include
rm -rf install/include/onnxruntime
echo "set(OnnxRuntime_INCLUDE_DIRS \"\${CMAKE_CURRENT_LIST_DIR}/include\")" > install/OnnxRuntimeConfig.cmake
echo "include_directories(\${OnnxRuntime_INCLUDE_DIRS})" >> install/OnnxRuntimeConfig.cmake
Expand Down Expand Up @@ -53,7 +53,7 @@ function cmakeBuild() {
cmake -DCMAKE_BUILD_TYPE=$1 \
-DCMAKE_TOOLCHAIN_FILE=../musl-cross.toolchain.cmake \
-DCMAKE_INSTALL_PREFIX=install \
$(cat ../onnxruntime_options-v1.15.1.txt) \
$(cat ../onnxruntime_options-v1.16.3.txt) \
../cmake
cmake --build . -j $NUM_THREADS
cmake --build . --target install
Expand Down
6 changes: 3 additions & 3 deletions build-onnxruntime.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ cls
SETLOCAL EnableDelayedExpansion

IF "%1"=="" (
echo input VS_VER none, use v142
set VS_VER="v142"
echo input VS_VER none, use v143
set VS_VER="v143"
)^
ELSE (
echo input VS_VER:%1
Expand Down Expand Up @@ -42,7 +42,7 @@ GOTO:EOF
:collectLibs
cmake --build . --config Release --target install
::del /s/q install\*test*.exe
copy install\include\onnxruntime\core\session\* install\include
copy install\include\onnxruntime\* install\include
rd /S /Q install\include\onnxruntime
echo set(OnnxRuntime_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/include") > install/OnnxRuntimeConfig.cmake
echo include_directories(${OnnxRuntime_INCLUDE_DIRS}) >> install/OnnxRuntimeConfig.cmake
Expand Down
2 changes: 1 addition & 1 deletion build-onnxruntime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function collectLibs() {
# shared lib
cmake --build . --config Release --target install
# rm -r -f install/bin
mv install/include/onnxruntime/core/session/* install/include
mv install/include/onnxruntime/* install/include
rm -rf install/include/onnxruntime
echo "set(OnnxRuntime_INCLUDE_DIRS \"\${CMAKE_CURRENT_LIST_DIR}/include\")" > install/OnnxRuntimeConfig.cmake
echo "include_directories(\${OnnxRuntime_INCLUDE_DIRS})" >> install/OnnxRuntimeConfig.cmake
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-Donnxruntime_RUN_ONNX_TESTS=OFF
-Donnxruntime_GENERATE_TEST_REPORTS=OFF
-Donnxruntime_GENERATE_TEST_REPORTS=ON
-Donnxruntime_USE_MIMALLOC=OFF
-Donnxruntime_ENABLE_PYTHON=OFF
-Donnxruntime_BUILD_CSHARP=OFF
-Donnxruntime_BUILD_JAVA=OFF
-Donnxruntime_BUILD_JAVA=ON
-Donnxruntime_BUILD_NODEJS=OFF
-Donnxruntime_BUILD_OBJC=OFF
-Donnxruntime_BUILD_SHARED_LIB=ON
Expand Down Expand Up @@ -55,7 +55,6 @@
-Donnxruntime_USE_MPI=OFF
-Donnxruntime_ENABLE_MEMORY_PROFILE=OFF
-Donnxruntime_ENABLE_CUDA_LINE_NUMBER_INFO=OFF
-Donnxruntime_BUILD_WEBASSEMBLY=OFF
-Donnxruntime_BUILD_WEBASSEMBLY_STATIC_LIB=OFF
-Donnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_CATCHING=ON
-Donnxruntime_ENABLE_WEBASSEMBLY_API_EXCEPTION_CATCHING=OFF
Expand All @@ -69,9 +68,11 @@
-Donnxruntime_ENABLE_CUDA_PROFILING=OFF
-Donnxruntime_ENABLE_ROCM_PROFILING=OFF
-Donnxruntime_USE_XNNPACK=OFF
-Donnxruntime_USE_WEBNN=OFF
-Donnxruntime_USE_CANN=OFF
-Donnxruntime_USE_TRITON_KERNEL=OFF
-Donnxruntime_DISABLE_FLOAT8_TYPES=OFF
-Donnxruntime_BUILD_UNIT_TESTS=OFF
-DCMAKE_TLS_VERIFY=ON
-DFETCHCONTENT_QUIET=OFF
-Donnxruntime_PYBIND_EXPORT_OPSCHEMA=OFF
-Donnxruntime_ENABLE_MEMLEAK_CHECKER=OFF
-Donnxruntime_ENABLE_MEMLEAK_CHECKER=OFF

0 comments on commit ddc8b74

Please sign in to comment.