Skip to content

Commit

Permalink
feat: update scripts and LICENSE for minimal build
Browse files Browse the repository at this point in the history
  • Loading branch information
stakemura committed Sep 30, 2024
1 parent 6947b16 commit 051acc2
Show file tree
Hide file tree
Showing 10 changed files with 356 additions and 558 deletions.
7 changes: 7 additions & 0 deletions .github/pull_request_template.md
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/).
729 changes: 298 additions & 431 deletions .github/workflows/build.yml

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions 1_17_3_android_arm64_build.patch
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()
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
MIT License

Copyright (c) 2021 VOICEVOX
Copyright (c) 2021 other contributors
Copyright (c) 2024 DeNA

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
32 changes: 27 additions & 5 deletions README.md
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 xcframework/Frameworks/aarch64/onnxruntime.framework/Info.plist

This file was deleted.

This file was deleted.

51 changes: 0 additions & 51 deletions xcframework/Frameworks/sim/onnxruntime.framework/Info.plist

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions xcframework/README.md

This file was deleted.

0 comments on commit 051acc2

Please sign in to comment.