Skip to content

Commit 661743d

Browse files
authored
Running builds sequentially (#24)
Co-authored-by: Alex Guretzki <alexander.guretzki@adyen.com>
1 parent 80ed0cb commit 661743d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Sources/Pipeline/Pipeline.swift

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,19 @@ struct Pipeline {
8383
private extension Pipeline {
8484

8585
func buildProjects(oldSource: ProjectSource, newSource: ProjectSource, scheme: String?) async throws -> (URL, URL) {
86-
async let oldBuildResult = try projectBuilder.build(
86+
87+
// We don't run them in parallel to not conflict with resolving dependencies concurrently
88+
89+
let oldProjectUrl = try await projectBuilder.build(
8790
source: oldProjectSource,
8891
scheme: scheme
8992
)
9093

91-
async let newBuildResult = try projectBuilder.build(
94+
let newProjectUrl = try await projectBuilder.build(
9295
source: newProjectSource,
9396
scheme: scheme
9497
)
9598

96-
// Awaiting the result of the async builds
97-
let oldProjectUrl = try await oldBuildResult
98-
let newProjectUrl = try await newBuildResult
99-
10099
return (oldProjectUrl, newProjectUrl)
101100
}
102101

0 commit comments

Comments
 (0)