Skip to content

Commit

Permalink
fix: archive build, the ACTION value is install
Browse files Browse the repository at this point in the history
  • Loading branch information
Coder-Star committed Jul 9, 2024
1 parent 86e64d3 commit 9f5c455
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/XCRemoteCache/Stats/CacheHitLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ActionSpecificCacheHitLogger: CacheHitLogger {
case .index:
hitCounter = .indexingTargetHitCount
missCounter = .indexingTargetMissCount
case .build:
case .build, .archive:
hitCounter = .targetCacheHit
missCounter = .targetCacheMiss
case .unknown:
Expand Down
2 changes: 2 additions & 0 deletions Sources/XCRemoteCache/Xcode/BuildActionType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ enum BuildActionType: String, Codable {
case build
/// An extra build, exclusive for indexing (Introduced in Xcode 13)
case index = "indexbuild"
/// Archive build
case archive = "install"
/// Unknown type, probably incompatible Xcode version used
case unknown
}

0 comments on commit 9f5c455

Please sign in to comment.