Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# The one workflow this repository had was queen-deploy.yml, which never runs
# `zig build`. The manifest pinned golden_float-0.2.0 while upstream had moved
# to 2.1.0, so a fetch failed with a hash mismatch before any compilation
# started — and there was no `test` step at all: `zig build test` answered
# "error: no step named 'test'" while 672 test blocks sat in the tree.
name: build

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v2
with:
version: 0.15.2

- name: zig build
run: zig build

- name: zig build test
run: zig build test --summary all
2 changes: 2 additions & 0 deletions .zig-cache/h/36d2adc3c0ae444d905892c381bc9513.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
0
2130088 37604103 1786480126781581921 5e8b61ed16497dbadedf64f3e2a9df60 1 .zig-cache/o/4a25f9d7099494174c8494afcf248141/cloud_train
552 changes: 552 additions & 0 deletions .zig-cache/h/3bcddcd3fcbd731ce87fcf5130cd8b19.txt

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .zig-cache/h/62160156dc3dfba77ef271c9f9e0d31f.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
0
2129624 37604113 1786480126855446165 7f2ca1516fe6e4b143203c302a1cc715 1 .zig-cache/o/70a17ac84e9841f2c050f877562128b4/railway_api
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions .zig-cache/h/b125bb5b547f374bdbb22e4ba3cfb035.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
0
2107400 37604102 1786480126734488343 242d1d6ce6c3335b5b5408e9e4c2d0e8 1 .zig-cache/o/c52fc0d15f59844eaa1bb0430279fd51/hslm
820 changes: 820 additions & 0 deletions .zig-cache/h/cc5788a69922d237791259f209be484a.txt

Large diffs are not rendered by default.

820 changes: 820 additions & 0 deletions .zig-cache/h/cf055f00b105ab2a01097e24bcdafeeb.txt

Large diffs are not rendered by default.

817 changes: 817 additions & 0 deletions .zig-cache/h/d05e39b7deab6f73e1f745090c74e6d2.txt

Large diffs are not rendered by default.

823 changes: 823 additions & 0 deletions .zig-cache/h/fd6c3ee2fb2889b536b24662a5f6260c.txt

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions .zig-cache/o/6b41c600a19500d49e27026dd155072a/dependencies.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pub const packages = struct {
pub const @"golden_float-2.1.0-h7LKhS0ICwBV7_RGpLbK30-1dFMQ1SUmMq1c34c4O0yj" = struct {
pub const build_root = "/private/tmp/claude-501/-Users-ssdm4-Desktop-PROJECTS-CLAUDE/4ee033a3-337b-4f3e-a701-150ecdcd58df/scratchpad/fleet/trinity-training/zig-pkg/golden_float-2.1.0-h7LKhS0ICwBV7_RGpLbK30-1dFMQ1SUmMq1c34c4O0yj";
pub const build_zig = @import("golden_float-2.1.0-h7LKhS0ICwBV7_RGpLbK30-1dFMQ1SUmMq1c34c4O0yj");
pub const deps: []const struct { []const u8, []const u8 } = &.{
};
};
};

pub const root_deps: []const struct { []const u8, []const u8 } = &.{
.{ "golden_float", "golden_float-2.1.0-h7LKhS0ICwBV7_RGpLbK30-1dFMQ1SUmMq1c34c4O0yj" },
};
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .zig-cache/z/1910343b7bc69a4011db3aa02d6c4a9c
Binary file not shown.
Binary file added .zig-cache/z/2045efa8d7fdf09a340b770f520ae2a0
Binary file not shown.
Binary file added .zig-cache/z/244e5ee33a0f3d05658d993fd8923129
Binary file not shown.
Binary file added .zig-cache/z/31bbdf70f346a5cce0e63f60a3dbd9e5
Binary file not shown.
Binary file added .zig-cache/z/6e840847bab37840b195151e550cb002
Binary file not shown.
Binary file added .zig-cache/z/a9ea7fe2effb6df93fe12dffc9b07e39
Binary file not shown.
Binary file added .zig-cache/z/aa4c54c226f3726937cb71f9e629b8c3
Binary file not shown.
Binary file added .zig-cache/z/c5c12d5ce6338d26b76a3f26171565bf
Binary file not shown.
16 changes: 16 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,20 @@ pub fn build(b: *std.Build) void {
const train_step = b.step("train", "Build HSLM CLI");
train_step.dependOn(&hslm_exe.step);
b.default_step = train_step;

// There was no test step at all. `zig build test` answered
// "error: no step named 'test'", while 672 `test` blocks sat in the tree
// across 104 files. Nothing could run them, so nothing ever had.
const test_step = b.step("test", "Run tests");
const test_roots = [_]struct { name: []const u8, mod: *std.Build.Module }{
.{ .name = "hslm", .mod = hslm },
.{ .name = "railway_farm", .mod = railway_farm },
.{ .name = "cloud_train", .mod = cloud_train },
.{ .name = "railway_api", .mod = railway_api },
.{ .name = "railway_circuit", .mod = railway_circuit },
};
for (test_roots) |r| {
const t = b.addTest(.{ .name = r.name, .root_module = r.mod });
test_step.dependOn(&b.addRunArtifact(t).step);
}
}
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.dependencies = .{
.golden_float = .{
.url = "https://github.com/gHashTag/zig-golden-float/archive/refs/heads/main.tar.gz",
.hash = "golden_float-0.2.0-h7LKhdEXCgA666AjkuikpycwldAc3ftwT5F-pn3NtfLn",
.hash = "golden_float-2.1.0-h7LKhS0ICwBV7_RGpLbK30-1dFMQ1SUmMq1c34c4O0yj",
},
},
.paths = .{
Expand Down
Loading