Update submodule and fix onnxruntime download for tests#281
Conversation
|
@copilot VOICEVOX/voicevox_core#1278 のdescriptionにテスト目的でonnxruntimeをダウンロードする方法などが書いてあったはずです |
…e for onnxruntime download Agent-Logs-Url: https://github.com/yamachu/VoicevoxCoreSharp/sessions/4dd3587f-9a8f-461f-8df7-91cb39a11dcd Co-authored-by: yamachu <1955233+yamachu@users.noreply.github.com>
PR #1278 のdescriptionによると、
ワークフローファイルの変更は不要です。新しいビルド後も |
|
/mq |
|
Testing: https://github.com/yamachu/VoicevoxCoreSharp/actions/runs/23627053813
If you want to cancel the test, you can cancel it by GitHub CLI below command:
|
メモ
VOICEVOX/voicevox_core#1278
上記PRの変更に対応したonnxruntimeの扱いにする必要がある
対応内容
voicevox_core PR #1278 の変更により、
cargo build時にデフォルトでonnxruntimeがダウンロードされなくなった。テスト目的でonnxruntimeをダウンロードするには、新しいCargoフィーチャbuildtime-download-onnxruntimeを明示的に有効化する必要がある。binding/Makefileのbuild/dev-libraryターゲットに-F voicevox_core/buildtime-download-onnxruntimeを追加voicevox_coreサブモジュールの.cargo/config.tomlには既にVVCORE_BUILD_DOWNLOAD_AND_COPY_ORT=1が設定されているため、環境変数の追加設定は不要。ビルド後もlibonnxruntime.soはtarget/release/libonnxruntime.soにシンボリックリンクとして配置され、composite actionの既存のシンボリックリンク解除ステップが実ファイルに変換するため、ワークフローファイルのキャッシュパス等は変更不要。✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.