From 51796642d64a6be5a42d61a490d014bf20102853 Mon Sep 17 00:00:00 2001 From: Alex Guretzki Date: Wed, 9 Oct 2024 10:55:54 +0200 Subject: [PATCH] Running builds sequentially --- Sources/Pipeline/Pipeline.swift | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Sources/Pipeline/Pipeline.swift b/Sources/Pipeline/Pipeline.swift index ade10fa..a074c6d 100644 --- a/Sources/Pipeline/Pipeline.swift +++ b/Sources/Pipeline/Pipeline.swift @@ -83,20 +83,19 @@ struct Pipeline { private extension Pipeline { func buildProjects(oldSource: ProjectSource, newSource: ProjectSource, scheme: String?) async throws -> (URL, URL) { - async let oldBuildResult = try projectBuilder.build( + + // We don't run them in parallel to not conflict with resolving dependencies concurrently + + let oldProjectUrl = try await projectBuilder.build( source: oldProjectSource, scheme: scheme ) - async let newBuildResult = try projectBuilder.build( + let newProjectUrl = try await projectBuilder.build( source: newProjectSource, scheme: scheme ) - // Awaiting the result of the async builds - let oldProjectUrl = try await oldBuildResult - let newProjectUrl = try await newBuildResult - return (oldProjectUrl, newProjectUrl) }