Skip to content

Commit 051acc2

Browse files
committed
feat: update scripts and LICENSE for minimal build
1 parent 6947b16 commit 051acc2

File tree

10 files changed

+356
-558
lines changed

10 files changed

+356
-558
lines changed

.github/pull_request_template.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- write content here -->
2+
3+
---
4+
5+
### Contribution License Agreement
6+
7+
- [ ] 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/).

.github/workflows/build.yml

+298-431
Large diffs are not rendered by default.

1_17_3_android_arm64_build.patch

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py
2+
index 85583e11f5..3db1ee8b7b 100644
3+
--- a/tools/ci_build/build.py
4+
+++ b/tools/ci_build/build.py
5+
@@ -987,6 +987,8 @@ def generate_build_tree(
6+
disable_optional_type = "optional" in types_to_disable
7+
disable_sparse_tensors = "sparsetensor" in types_to_disable
8+
9+
+ is_x86_64_build = not (args.android or args.ios or args.build_wasm or args.arm or args.arm64 or args.arm64ec)
10+
+
11+
cmake_args += [
12+
"-Donnxruntime_RUN_ONNX_TESTS=" + ("ON" if args.enable_onnx_tests else "OFF"),
13+
"-Donnxruntime_GENERATE_TEST_REPORTS=ON",
14+
@@ -1571,7 +1573,7 @@ def generate_build_tree(
15+
"-pipe",
16+
"-ggdb3",
17+
]
18+
- if is_linux() and platform.machine() == "x86_64":
19+
+ if is_linux() and is_x86_64_build:
20+
# The following flags needs GCC 8 and newer
21+
cflags += ["-fstack-clash-protection", "-fcf-protection"]
22+
cxxflags = cflags.copy()

LICENSE

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
MIT License
22

33
Copyright (c) 2021 VOICEVOX
4+
Copyright (c) 2021 other contributors
5+
Copyright (c) 2024 DeNA
46

57
Permission is hereby granted, free of charge, to any person obtaining a copy
68
of this software and associated documentation files (the "Software"), to deal

README.md

+27-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
# onnxruntime-builder
2-
VOICEVOX COREで利用するonnxruntimeのビルドを行うリポジトリ
32

4-
## ビルド
3+
Build [**minimal** ONNX Runtime](https://onnxruntime.ai/docs/build/custom.html#minimal-build) with GitHub Actions.
54

6-
Github Actions から workflow_dispatch を起動。
5+
This repository is derived from [VOICEVOX/onnxruntime-builder](https://github.com/VOICEVOX/onnxruntime-builder).
76

8-
## リリース
7+
## Supported Platforms
98

10-
Releases からタグを指定して Publish releases 。
9+
You can download the archived files of the runtime binaries from [Releases](https://github.com/stakemura/onnxruntime-builder/releases).
10+
11+
| Platform | Type | ABI | Archived file |
12+
|----------|--------|-------------|---------------------------------------|
13+
| Android | .so | armeabi-v7a | `onnxruntime-runtime-android-arm-*.tgz` |
14+
| Android | .so | arm64-v8a | `onnxruntime-runtime-android-arm64-*.tgz` |
15+
| Android | .so | x86_64 | `onnxruntime-runtime-android-x86_64-*.tgz` |
16+
| Android | .aar | armeabi-v7, aarm64-v8a, x86_64 | `onnxruntime-runtime-android-aar-*.tgz` |
17+
| iOS | .xcframework | arm64, x86_64 | `onnxruntime-runtime-ios-xcframework-*.zip`|
18+
| Linux | .so | armv7l | `onnxruntime-runtime-linux-armhf-*.tgz` |
19+
| Linux | .so | aarch64 | `onnxruntime-runtime-linux-arm64-*.tgz` |
20+
| Linux | .so | x64 | `onnxruntime-runtime-linux-x64-*.tgz` |
21+
| macOS | .dylib | universal (arm64, x86_64) | `onnxruntime-runtime-osx-universal2-*.tgz` |
22+
| macOS | .dylib | arm64 | `onnxruntime-runtime-osx-arm64-*.tgz` |
23+
| macOS | .dylib | x86_64 | `onnxruntime-runtime-osx-x86_64-*.tgz` |
24+
| Windows | .dll | x64 | `onnxruntime-runtime-win-x64-*.tgz` |
25+
26+
## License
27+
28+
MIT License
29+
30+
## How to contribute
31+
32+
Open an issue or create a pull request.

xcframework/Frameworks/aarch64/onnxruntime.framework/Info.plist

-55
This file was deleted.

xcframework/Frameworks/aarch64/onnxruntime.framework/Modules/module.modulemap

-5
This file was deleted.

xcframework/Frameworks/sim/onnxruntime.framework/Info.plist

-51
This file was deleted.

xcframework/Frameworks/sim/onnxruntime.framework/Modules/module.modulemap

-5
This file was deleted.

xcframework/README.md

-6
This file was deleted.

0 commit comments

Comments
 (0)