forked from VOICEVOX/voicevox_core
-
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.
onnxruntime-rsからortに乗り換える (VOICEVOX#725)
* onnxruntime-rsからortに乗り換える * `--features onnxruntime/disable-sys-build-script`を消す * ortをアップデート * ortをアップデート * `onnxruntimeVersion`をアップデート * libonnxruntimeのコピー処理を更新 * ortをアップデート * libonnxruntimeのコピー処理を更新 * ortをアップデート * ortをアップデート * `ort::ExecutionProvider::is_available`を使う * `todo!`を消す * ortをアップデート * ortにあったAPIを使う * ortをアップデート * `$ORT_OUT_DIR`を削除 * ortをアップデート * ログのフィルタを更新 * ortをアップデート * tracingのレベルでortのログを抑える * Minor refactor * ortをアップデート * Fix Cargo.lock * Gradleのlibonnxruntimeのバージョンを更新 * ort v2.0.0-rc.1ベースに切り替える * Gradleのlibonnxruntimeのバージョンを更新 * `with_execution_provider` → `register` * ort v2.0.0-rc.2ベースに切り替える * Gradleのlibonnxruntimeのバージョンを更新 * voicevox-ortを更新 * VOICEVOX/ort#2 に追従する
- Loading branch information
Showing
18 changed files
with
269 additions
and
273 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
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 |
---|---|---|
|
@@ -72,8 +72,8 @@ jobs: | |
with: | ||
python-version: "3.8" | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo clippy -vv --all-features --features onnxruntime/disable-sys-build-script --tests -- -D clippy::all -D warnings --no-deps | ||
- run: cargo clippy -vv --all-features --features onnxruntime/disable-sys-build-script -- -D clippy::all -D warnings --no-deps | ||
- run: cargo clippy -vv --all-features --tests -- -D clippy::all -D warnings --no-deps | ||
- run: cargo clippy -vv --all-features -- -D clippy::all -D warnings --no-deps | ||
- run: cargo fmt -- --check | ||
|
||
rust-unit-test: | ||
|
@@ -199,8 +199,8 @@ jobs: | |
mkdir -p example/cpp/unix/voicevox_core/ | ||
cp -v crates/voicevox_core_c_api/include/voicevox_core.h example/cpp/unix/voicevox_core/ | ||
cp -v target/debug/libvoicevox_core.{so,dylib} example/cpp/unix/voicevox_core/ || true | ||
cp -v target/debug/build/onnxruntime-sys-*/out/onnxruntime_*/onnxruntime-*/lib/libonnxruntime.so.* example/cpp/unix/voicevox_core/ || true | ||
cp -v target/debug/build/onnxruntime-sys-*/out/onnxruntime_*/onnxruntime-*/lib/libonnxruntime.*.dylib example/cpp/unix/voicevox_core/ || true | ||
cp -v target/debug/libonnxruntime.so.* example/cpp/unix/voicevox_core/ || true | ||
cp -v target/debug/libonnxruntime.*.dylib example/cpp/unix/voicevox_core/ || true | ||
- if: startsWith(matrix.os, 'mac') | ||
uses: jwlawson/[email protected] | ||
|
@@ -281,9 +281,9 @@ jobs: | |
- run: poetry run maturin develop --locked | ||
- name: 必要なDLLをコピーしてpytestを実行 | ||
run: | | ||
cp -v ../../target/debug/build/onnxruntime-sys-*/out/onnxruntime_*/onnxruntime-*/lib/onnxruntime.dll . || true | ||
cp -v ../../target/debug/build/onnxruntime-sys-*/out/onnxruntime_*/onnxruntime-*/lib/libonnxruntime.so.* . || true | ||
cp -v ../../target/debug/build/onnxruntime-sys-*/out/onnxruntime_*/onnxruntime-*/lib/libonnxruntime.*.dylib . || true | ||
cp -v ../../target/debug/onnxruntime.dll . || true | ||
cp -v ../../target/debug/libonnxruntime.so.* . || true | ||
cp -v ../../target/debug/libonnxruntime.*.dylib . || true | ||
poetry run pytest | ||
- name: Exampleを実行 | ||
|
Oops, something went wrong.