Skip to content

Commit

Permalink
Running builds sequentially (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Guretzki <[email protected]>
  • Loading branch information
goergisn and Alex Guretzki authored Oct 9, 2024
1 parent 80ed0cb commit 661743d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Sources/Pipeline/Pipeline.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 661743d

Please sign in to comment.