f06063e4aaf4
add kepr.build — enables Kepr Builds for all four platforms on every offer
- time
- 2026-05-30 09:43 UTC · 4 months ago
- machine
- koh2
- parent
- bc7cf129a9b7
↓ nina-f06063e4.tar.gzatlas at this save
files changed2 files
build.zig+8 −1kepr.build+5 −0build.zig+8 −1
@@ -1,7 +1,14 @@11 const std = @import("std");22 33 pub fn build(b: *std.Build) void {4- const target = b.standardTargetOptions(.{});4+ // When built by Kepr Builds, KEPR_TARGET carries the cross-compile triple5+ // so the same command works across all platforms without shell expansion.6+ const target = if (std.c.getenv("KEPR_TARGET")) |t_ptr|7+ b.resolveTargetQuery(std.Target.Query.parse(8+ .{ .arch_os_abi = std.mem.span(t_ptr) },9+ ) catch std.Target.Query{})10+ else11+ b.standardTargetOptions(.{});512 const optimize = b.standardOptimizeOption(.{});613 714 const exe = b.addExecutable(.{kepr.build+5 −0
@@ -0,0 +1,5 @@1+enabled = true2+trigger = on-offer3+platforms = linux-x86_64, linux-aarch64, macos-aarch64, macos-x86_644+command = zig build -Doptimize=ReleaseSafe5+output = zig-out/bin/nina