Skip to content

Conversation

@sabonerune
Copy link
Contributor

内容

build-engine.yml<Setup> Save models cache<Setup> Prepare RESOURCE cacheenableCrossOsArchivetrueに変更することでWindowsとそれ以外(Linux・macOS)で同じキャッシュを使うように変更します。

これにより消費するキャッシュ容量を削減します。

その他

現在GitHub WorkflowのVVMとリソースのキャッシュは同じものが二つ作成されています。

VVMのキャッシュ リソースのキャッシュ

これはデフォルトの動作ではWindowsのキャッシュとそれ以外のキャッシュは分離されるようになっているからです。

しかし、これらはすべてのOSで同じもののはずなので分離して保存するのは無駄です。
リソースとVVMの合計サイズは2GBを超えるためキャッシュの上限10GBに対して最低でも4GBを常に消費し続けることになります。
また、これらのバージョンを変更すると前のバージョンと現在のバージョンの両方がキャッシュに保存される時期が生まれこれだけで8GBが消費されてしまいます。

こうなるとまだ生きているキャッシュも削除されやすくなりキャッシュの効率が低下してしまいます。
このPRはキャッシュの消費を抑えそれを防ぎます。

@Hiroshiba Hiroshiba changed the title fix: vvmとリソースのキャッシュをWindowsとそれ以外で共有するようにする ci: vvmとリソースのキャッシュをWindowsとそれ以外で共有するようにする Dec 7, 2025
@Hiroshiba Hiroshiba requested a review from Copilot December 7, 2025 08:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes GitHub Actions cache usage by enabling cross-OS cache sharing for VVM models and VOICEVOX resources. By setting enableCrossOsArchive: true, the workflow will share the same cache between Windows, Linux, and macOS instead of maintaining separate caches for each OS, reducing cache storage consumption from 4GB+ to 2GB+ for these resources.

Key changes:

  • Enable cross-OS archive support for models cache save operation
  • Enable cross-OS archive support for RESOURCE cache operation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

@Hiroshiba Hiroshiba enabled auto-merge December 8, 2025 10:26
@Hiroshiba Hiroshiba added this pull request to the merge queue Dec 8, 2025
Merged via the queue into VOICEVOX:master with commit d4d5b3c Dec 8, 2025
11 checks passed
@sabonerune sabonerune deleted the fix/crossss-os-cache branch December 8, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants