Repository navigation
fix(ci): Rust の実行ファイルをキャッシュの復元対象から外す - #147
Merged
Merged
Conversation
macOS の quality ジョブでは mise による Rust の導入に成功した後、 Cargo bin を含むキャッシュの復元を挟むと make setup 内の rustup が SIGKILL され、検査と後続のビルドが実行されなくなっていた。 quality と build の rust-cache に cache-bin: false を指定し、 mise が使用する rustup とプロキシの上書きを防ぐ。 レジストリと target のキャッシュ、ビルドのターゲット別キーは維持する。 キャッシュするパスの変更により古い bin 付きのキャッシュとも分離される。 開発文書の英語版と日本語版に設定と理由を追記した。 検証: actionlint 1.7.12 で ci.yml を検査し、git diff --check も成功。 macOS 固有の起動と各ターゲットの検査・ビルドは PR の CI で確認する。 Fixes #146
Pre-merge checks:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
macOS の CI が、Rust 導入後のキャッシュ復元を挟むと
make setup内の rustup の SIGKILL で停止していたため、quality と build のSwatinem/rust-cacheにcache-bin: falseを指定します。mise が使う実行ファイルの上書きを防ぎ、Cargo の依存とビルド結果のキャッシュは維持します。ログでは mise の導入成功 →
~/.cargo/binを含むキャッシュの復元 → rustup の SIGKILL を確認しています。macOS のコード署名キャッシュの不整合が有力ですが、署名診断そのものは失敗ログに含まれていません。パス一覧の変更により GitHub cache の version も変わるため、旧 bin 付きキャッシュは復元されません。英語・日本語の開発文書に、この設定と理由を記載しました。
検証:
.github/workflows/ci.yml成功git diff --check: 成功Fixes #146