Skip to content

Commit

Permalink
Merge pull request #238 from Coder-Star/bug/action
Browse files Browse the repository at this point in the history
fix: archive build, the ACTION value is install
  • Loading branch information
polac24 authored Jul 10, 2024
2 parents 86e64d3 + 9f5c455 commit 0f97aa1
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 0f97aa1

Please sign in to comment.