diff --git a/.woodpecker.yml b/.woodpecker.yml index 445a549..0dfa225 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -32,4 +32,4 @@ pipeline: playground: image: git.qcode.ch/nakamochi/ci-zig0.11.0:v2 commands: - - zig build guiplay btcrpc + - zig build guiplay btcrpc lndhc diff --git a/build.zig b/build.zig index d5f08cd..efb561c 100644 --- a/build.zig +++ b/build.zig @@ -175,7 +175,7 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); lndhc.strip = strip; - lndhc.addModule("lndhttp", b.createModule(.{ .source_file = .{ .path = "src/lndhttp.zig" } })); + lndhc.addModule("lightning", b.createModule(.{ .source_file = .{ .path = "src/lightning.zig" } })); const lndhc_build_step = b.step("lndhc", "lnd HTTP API client playground"); lndhc_build_step.dependOn(&b.addInstallArtifact(lndhc, .{}).step); diff --git a/src/test/lndhc.zig b/src/test/lndhc.zig index 82f5243..96e8f1b 100644 --- a/src/test/lndhc.zig +++ b/src/test/lndhc.zig @@ -1,5 +1,5 @@ const std = @import("std"); -const lndhttp = @import("lndhttp"); +const lndhttp = @import("lightning").lndhttp; pub fn main() !void { var gpa_state = std.heap.GeneralPurposeAllocator(.{}){};