Skip to content

Commit a6ff62b

Browse files
committed
Fix CI: Register SkiaUIDocsSite as a product and improve build error reporting
1 parent d149eea commit a6ff62b

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Package.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ let package = Package(
99
.library(name: "SkiaUI", targets: ["SkiaUI"]),
1010
.library(name: "SkiaUIWebBridge", targets: ["SkiaUIWebBridge"]),
1111
.library(name: "SkiaUIBuildTool", targets: ["SkiaUIBuildTool"]),
12+
.executable(name: "SkiaUIDocsSite", targets: ["SkiaUIDocsSite"]),
13+
.executable(name: "skia", targets: ["skia"]),
1214
.plugin(name: "SkiaPlugin", targets: ["SkiaPlugin"]),
1315
],
1416
dependencies: [

Sources/SkiaUICLI/BuildCommand.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ public struct BuildCommand: ParsableCommand {
9292

9393
// Copy PackageToJS output
9494
let packageJSOutput = scratchPath + "/plugins/PackageToJS/outputs/Package"
95-
if fm.fileExists(atPath: packageJSOutput) {
96-
try fm.copyItem(atPath: packageJSOutput, toPath: distDir + "/package")
95+
guard fm.fileExists(atPath: packageJSOutput) else {
96+
print("Error: Build failed — could not find WASM output at \(packageJSOutput)")
97+
throw ExitError(code: 1)
9798
}
99+
try fm.copyItem(atPath: packageJSOutput, toPath: distDir + "/package")
98100

99101
// Copy WebHost files
100102
let webHostDir = cwd + "/WebHost"

0 commit comments

Comments
 (0)