Skip to content

Commit

Permalink
Summary data from build-all
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Jul 12, 2022
1 parent 1779dae commit 8f04e03
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/build-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ const s3 = new S3({

const bucket = s3.getBucket(Deno.env.get("S3_BUCKET")!);

const results = {
built: [],
failed: []
}

for await (const project of projects) {
try {
const req = { project, constraint: new semver.Range('*') }
Expand Down Expand Up @@ -101,7 +106,9 @@ async function buildIfNeeded({ project, install }: BuildOptions) {
try {
const path = await build({ pkg, deps: graph })
await link({ path, pkg })
results.built.add(`${pkg.project}-${pkg.version.version}`)
} catch (error) {
results.failed.add(`${pkg.project}-${pkg.version.version}`)
console.verbose({ failedToBuild: pkg, error })
} finally {
/// HACK: can't clean up `go` srcdir because it's a required part of the install
Expand All @@ -111,6 +118,10 @@ async function buildIfNeeded({ project, install }: BuildOptions) {
}
}

console.verbose({ results })

//end

async function prepare(pkg: Package) {
const dstdir = useCellar().mkpath(pkg).join("src")
const { url, stripComponents } = await pantry.getDistributable(pkg)
Expand Down

0 comments on commit 8f04e03

Please sign in to comment.