Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 75bac3293a | |||
| 8c89e88716 | |||
| 0f97aa120f | |||
| 9f5c455ea6 | |||
| 86e64d3eab | |||
| 832e0ffeb0 | |||
| 4db65a9bc5 | |||
| 34e8c0b911 | |||
| acd866c242 | |||
| 2e6729ecaa | |||
| a05fa9cab5 | |||
| 487a58aba0 | |||
| 62ace6a24f | |||
| 0290557197 | |||
| 68b1f76cd4 |
@@ -13,14 +13,16 @@ jobs:
|
||||
args: --strict
|
||||
|
||||
macOS:
|
||||
runs-on: macos-12
|
||||
runs-on: macos-14
|
||||
env:
|
||||
XCODE_VERSION: ${{ '14.2' }}
|
||||
XCODE_VERSION: ${{ '14.3.1' }}
|
||||
steps:
|
||||
- name: Select Xcode
|
||||
run: "sudo xcode-select -s /Applications/Xcode_$XCODE_VERSION.app"
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
- name: Install nginx
|
||||
run: brew install nginx
|
||||
- name: Build and Run
|
||||
run: rake build[release]
|
||||
- name: Test
|
||||
|
||||
@@ -7,9 +7,9 @@ on:
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: macos-12
|
||||
runs-on: macos-14
|
||||
env:
|
||||
XCODE_VERSION: ${{ '14.2' }}
|
||||
XCODE_VERSION: ${{ '14.3.1' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Select Xcode
|
||||
|
||||
@@ -6,9 +6,9 @@ on:
|
||||
jobs:
|
||||
macOS:
|
||||
name: Add macOS binaries to release
|
||||
runs-on: macos-12
|
||||
runs-on: macos-14
|
||||
env:
|
||||
XCODE_VERSION: ${{ '14.2' }}
|
||||
XCODE_VERSION: ${{ '14.3.1' }}
|
||||
steps:
|
||||
- name: Select Xcode
|
||||
run: "sudo xcode-select -s /Applications/Xcode_$XCODE_VERSION.app"
|
||||
|
||||
@@ -7,7 +7,6 @@ _XCRemoteCache is a remote cache tool for Xcode projects. It reuses target artif
|
||||
|
||||
[](https://github.com/spotify/XCRemoteCache/workflows/CI/badge.svg)
|
||||
[](LICENSE)
|
||||
[](https://slackin.spotify.com)
|
||||
[](https://spotify.github.io/XCRemoteCache/documentation/xcremotecache/)
|
||||
|
||||
- [How and Why?](#how-and-why)
|
||||
@@ -499,8 +498,6 @@ The zip package will be generated at `releases/XCRemoteCache.zip`.
|
||||
|
||||
Create a [new issue](https://github.com/spotify/XCRemoteCache/issues/new) with as many details as possible.
|
||||
|
||||
Reach us at the `#xcremotecache` channel in [Slack](https://slackin.spotify.com/).
|
||||
|
||||
## Contributing
|
||||
|
||||
We feel that a welcoming community is important and we ask that you follow Spotify's
|
||||
|
||||
@@ -91,6 +91,7 @@ class Prebuild {
|
||||
switch artifactPreparationResult {
|
||||
case .artifactExists(let artifactDir):
|
||||
infoLog("Artifact exists locally at \(artifactDir)")
|
||||
_ = try artifactsOrganizer.prepare(artifact: artifactDir)
|
||||
try artifactsOrganizer.activate(extractedArtifact: artifactDir)
|
||||
case .preparedForArtifact(let artifactPackage):
|
||||
infoLog("Downloading artifact to \(artifactPackage)")
|
||||
|
||||
@@ -84,13 +84,13 @@ private func shellInternal(_ cmd: String, args: [String] = [], stdout: PipeLike?
|
||||
task.currentDirectoryPath = dir
|
||||
}
|
||||
task.launch()
|
||||
let errorData = (stderr != nil) ? nil : errorHandle.fileHandleForReading.readDataToEndOfFile()
|
||||
task.waitUntilExit()
|
||||
if task.terminationStatus != 0 {
|
||||
if stderr != nil {
|
||||
guard let errorData = errorData else {
|
||||
// Error stream was captured so cannot inspect its content
|
||||
throw ShellError.statusError("Failed command", task.terminationStatus)
|
||||
}
|
||||
let errorData = errorHandle.fileHandleForReading.readDataToEndOfFile()
|
||||
let errorString = String(data: errorData, encoding: .utf8)?.trim() ?? "No error returned from the process."
|
||||
throw ShellError.statusError(
|
||||
"status \(task.terminationStatus): \(errorString)", task.terminationStatus
|
||||
|
||||
@@ -37,7 +37,7 @@ class ActionSpecificCacheHitLogger: CacheHitLogger {
|
||||
case .index:
|
||||
hitCounter = .indexingTargetHitCount
|
||||
missCounter = .indexingTargetMissCount
|
||||
case .build:
|
||||
case .build, .archive:
|
||||
hitCounter = .targetCacheHit
|
||||
missCounter = .targetCacheMiss
|
||||
case .unknown:
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user