fix: CDワークフローのSPMキャッシュキーのパスを修正#24
Merged
Merged
Conversation
hashFiles()のパスに空白が混入しており、ファイルが見つからず SPMキャッシュが常にミスしていた。また、パターンが.xcodeproj ベースで誤っており、ワークスペースのPackage.resolvedを 参照できていなかった。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
変更の概要
CD ワークフロー(Beta・Release)の Swift Package Manager キャッシュキーに誤ったパスが設定されていた問題を修正します。
変更の理由/背景
xcodebuild -showBuildSettingsがタイムアウトして CD ワークフローが失敗していました。原因を調査したところ、SPM キャッシュの
hashFiles()パスに以下の2つの問題があり、キャッシュが常にミスし続けていたことが判明しました。hashFiles()のパスの途中にスペースが混入しており、ファイルが見つからず空のハッシュ値になっていた*.xcodeproj/project.xcworkspace/...になっており、本プロジェクトのワークスペース(TimerWatcherWorkspace.xcworkspace)を参照できていなかった毎回 SPM パッケージをネットワーク経由で解決しようとした結果、
xcodebuild -showBuildSettingsがハングしてタイムアウトが発生していました。主な変更点
.github/workflows/cdBeta.ymlhashFiles()パスを修正'*.xcodeproj/project.xcworkspace/ xcshareddata/swiftpm/Package.resolved'(空白あり・誤パターン)'TimerWatcherWorkspace.xcworkspace/xcshareddata/swiftpm/Package.resolved'.github/workflows/cdRelease.ymlテスト方法
release/beta/*ブランチへの push またはworkflow_dispatchで CD_Beta ワークフローを実行し、scanステップがタイムアウトせず正常完了することを確認関連Issue
🤖 Generated with Claude Code