Skip to content

Commit 57afbd7

Browse files
committed
Only build for iOS (and the simulator).
1 parent ba4f104 commit 57afbd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tools/Release/Sources/Release.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ struct Release: AsyncParsableCommand {
4747
Log.info("Building \(branch) at \(commitHash)")
4848

4949
// unset fixes an issue where swift compilation prevents building for targets other than macOS
50-
try Zsh.run(command: "unset SDKROOT && cargo xtask swift build-framework --release", directory: buildDirectory)
50+
let cargoCommand = "cargo xtask swift build-framework --release --target aarch64-apple-ios --target aarch64-apple-ios-sim --target x86_64-apple-ios"
51+
try Zsh.run(command: "unset SDKROOT && \(cargoCommand)", directory: buildDirectory)
5152

5253
return BuildProduct(sourceRepo: sourceRepo,
5354
version: version,

0 commit comments

Comments
 (0)