forked from VOICEVOX/onnxruntime-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update scripts and LICENSE for minimal build
- Loading branch information
Showing
10 changed files
with
356 additions
and
558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- write content here --> | ||
|
||
--- | ||
|
||
### Contribution License Agreement | ||
|
||
- [ ] By placing an "x" in the box, I hereby understand, accept and agree to be bound by the terms and conditions of the [Contribution License Agreement](https://dena.github.io/cla/). |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py | ||
index 85583e11f5..3db1ee8b7b 100644 | ||
--- a/tools/ci_build/build.py | ||
+++ b/tools/ci_build/build.py | ||
@@ -987,6 +987,8 @@ def generate_build_tree( | ||
disable_optional_type = "optional" in types_to_disable | ||
disable_sparse_tensors = "sparsetensor" in types_to_disable | ||
|
||
+ is_x86_64_build = not (args.android or args.ios or args.build_wasm or args.arm or args.arm64 or args.arm64ec) | ||
+ | ||
cmake_args += [ | ||
"-Donnxruntime_RUN_ONNX_TESTS=" + ("ON" if args.enable_onnx_tests else "OFF"), | ||
"-Donnxruntime_GENERATE_TEST_REPORTS=ON", | ||
@@ -1571,7 +1573,7 @@ def generate_build_tree( | ||
"-pipe", | ||
"-ggdb3", | ||
] | ||
- if is_linux() and platform.machine() == "x86_64": | ||
+ if is_linux() and is_x86_64_build: | ||
# The following flags needs GCC 8 and newer | ||
cflags += ["-fstack-clash-protection", "-fcf-protection"] | ||
cxxflags = cflags.copy() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,32 @@ | ||
# onnxruntime-builder | ||
VOICEVOX COREで利用するonnxruntimeのビルドを行うリポジトリ | ||
|
||
## ビルド | ||
Build [**minimal** ONNX Runtime](https://onnxruntime.ai/docs/build/custom.html#minimal-build) with GitHub Actions. | ||
|
||
Github Actions から workflow_dispatch を起動。 | ||
This repository is derived from [VOICEVOX/onnxruntime-builder](https://github.com/VOICEVOX/onnxruntime-builder). | ||
|
||
## リリース | ||
## Supported Platforms | ||
|
||
Releases からタグを指定して Publish releases 。 | ||
You can download the archived files of the runtime binaries from [Releases](https://github.com/stakemura/onnxruntime-builder/releases). | ||
|
||
| Platform | Type | ABI | Archived file | | ||
|----------|--------|-------------|---------------------------------------| | ||
| Android | .so | armeabi-v7a | `onnxruntime-runtime-android-arm-*.tgz` | | ||
| Android | .so | arm64-v8a | `onnxruntime-runtime-android-arm64-*.tgz` | | ||
| Android | .so | x86_64 | `onnxruntime-runtime-android-x86_64-*.tgz` | | ||
| Android | .aar | armeabi-v7, aarm64-v8a, x86_64 | `onnxruntime-runtime-android-aar-*.tgz` | | ||
| iOS | .xcframework | arm64, x86_64 | `onnxruntime-runtime-ios-xcframework-*.zip`| | ||
| Linux | .so | armv7l | `onnxruntime-runtime-linux-armhf-*.tgz` | | ||
| Linux | .so | aarch64 | `onnxruntime-runtime-linux-arm64-*.tgz` | | ||
| Linux | .so | x64 | `onnxruntime-runtime-linux-x64-*.tgz` | | ||
| macOS | .dylib | universal (arm64, x86_64) | `onnxruntime-runtime-osx-universal2-*.tgz` | | ||
| macOS | .dylib | arm64 | `onnxruntime-runtime-osx-arm64-*.tgz` | | ||
| macOS | .dylib | x86_64 | `onnxruntime-runtime-osx-x86_64-*.tgz` | | ||
| Windows | .dll | x64 | `onnxruntime-runtime-win-x64-*.tgz` | | ||
|
||
## License | ||
|
||
MIT License | ||
|
||
## How to contribute | ||
|
||
Open an issue or create a pull request. |
55 changes: 0 additions & 55 deletions
55
xcframework/Frameworks/aarch64/onnxruntime.framework/Info.plist
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
xcframework/Frameworks/aarch64/onnxruntime.framework/Modules/module.modulemap
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
xcframework/Frameworks/sim/onnxruntime.framework/Info.plist
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
xcframework/Frameworks/sim/onnxruntime.framework/Modules/module.modulemap
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.