build: updated pipelines to use cargo-zigbuild container to work with apple and be faster
All checks were successful
ci/crow/push/release Pipeline was successful
ci/crow/tag/build Pipeline was successful

This commit is contained in:
Grace Yoder 2026-06-30 14:11:34 -06:00
parent 63265d1d7e
commit 1be3e0468d
Signed by: grace
SSH key fingerprint: SHA256:oG9v0ZlohsoMAg083HAwBGOcaPLF3nIuOlAW4MtASMo
2 changed files with 24 additions and 25 deletions

View file

@ -29,12 +29,20 @@ pub fn build(b: *std.Build) void {
.language = .objective_c,
.flags = &.{"-fobjc-arc"},
});
exe.root_module.linkFramework("Cocoa", .{});
tests.root_module.addCSourceFiles(.{
.files = &.{"src/Clip/NSPBBridge.m"},
.language = .objective_c,
.flags = &.{"-fobjc-arc"},
});
if (b.sysroot) |sysroot| {
const framework_path = b.pathJoin(&.{ sysroot, "System/Library/Frameworks" });
const include_path = b.pathJoin(&.{ sysroot, "usr/include" });
exe.root_module.addSystemFrameworkPath(.{ .cwd_relative = framework_path });
exe.root_module.addSystemIncludePath(.{ .cwd_relative = include_path });
tests.root_module.addSystemFrameworkPath(.{ .cwd_relative = framework_path });
tests.root_module.addSystemIncludePath(.{ .cwd_relative = include_path });
}
exe.root_module.linkFramework("Cocoa", .{});
tests.root_module.linkFramework("Cocoa", .{});
}