From 0212f11d47a37e0b26aae271c1764b7b5fcf9a02 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 8 Feb 2024 09:34:16 +0100 Subject: [PATCH] test: reinstate lndhc playground build it broke after last commit where lnd client got moved into the lightning module, preventing lndhc from importing it. also, add lndhc to CI build to catch regressions like this early on. --- .woodpecker.yml | 2 +- build.zig | 2 +- src/test/lndhc.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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(.{}){};