From 9f5c455ea696b29e575942ea2233bffb5c3a8341 Mon Sep 17 00:00:00 2001 From: CoderStar <1340529758@qq.com> Date: Mon, 1 Jul 2024 11:51:39 +0800 Subject: [PATCH] fix: archive build, the ACTION value is install --- Sources/XCRemoteCache/Stats/CacheHitLogger.swift | 2 +- Sources/XCRemoteCache/Xcode/BuildActionType.swift | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/XCRemoteCache/Stats/CacheHitLogger.swift b/Sources/XCRemoteCache/Stats/CacheHitLogger.swift index 8f276e11..374a9ff2 100644 --- a/Sources/XCRemoteCache/Stats/CacheHitLogger.swift +++ b/Sources/XCRemoteCache/Stats/CacheHitLogger.swift @@ -37,7 +37,7 @@ class ActionSpecificCacheHitLogger: CacheHitLogger { case .index: hitCounter = .indexingTargetHitCount missCounter = .indexingTargetMissCount - case .build: + case .build, .archive: hitCounter = .targetCacheHit missCounter = .targetCacheMiss case .unknown: diff --git a/Sources/XCRemoteCache/Xcode/BuildActionType.swift b/Sources/XCRemoteCache/Xcode/BuildActionType.swift index efaa9fdb..556067dc 100644 --- a/Sources/XCRemoteCache/Xcode/BuildActionType.swift +++ b/Sources/XCRemoteCache/Xcode/BuildActionType.swift @@ -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 }