aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/main.yml2
-rw-r--r--README.md4
-rw-r--r--build.zig6
3 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d40eabe..544d23a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -20,4 +20,4 @@ jobs:
20 run: zig build test 20 run: zig build test
21 21
22 - name: Run znk tests 22 - name: Run znk tests
23 run: zig build znk-test 23 run: zig build test-znk
diff --git a/README.md b/README.md
index b4b81a2..74a32b3 100644
--- a/README.md
+++ b/README.md
@@ -14,8 +14,8 @@ Zig master works at the time of writing.
14Use `zig build` to build the library. 14Use `zig build` to build the library.
15Use `zig build znk` to build the `znk` tool. 15Use `zig build znk` to build the `znk` tool.
16 16
17The `znk` tool can be run by using `zig build znk-run`. 17The `znk` tool can be run by using `zig build run-znk`.
18 18
19Tests for the library can be run by using `zig build test`. 19Tests for the library can be run by using `zig build test`.
20Tests for the `znk` tool can be run by using `zig build znk-test`. 20Tests for the `znk` tool can be run by using `zig build test-znk`.
21 21
diff --git a/build.zig b/build.zig
index 18f0b6f..b9c837d 100644
--- a/build.zig
+++ b/build.zig
@@ -13,7 +13,7 @@ pub fn build(b: *std.build.Builder) !void {
13 13
14 const version = "0.1.0-dev"; 14 const version = "0.1.0-dev";
15 15
16 const lib = b.addStaticLibrary("zats", "src/nkeys.zig"); 16 const lib = b.addStaticLibrary("nkeys", "src/nkeys.zig");
17 lib.setBuildMode(mode); 17 lib.setBuildMode(mode);
18 lib.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); 18 lib.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version));
19 lib.install(); 19 lib.install();
@@ -30,7 +30,7 @@ pub fn build(b: *std.build.Builder) !void {
30 znk_tests.addPackagePath("nkeys", "src/nkeys.zig"); 30 znk_tests.addPackagePath("nkeys", "src/nkeys.zig");
31 znk_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); 31 znk_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version));
32 32
33 const znk_test_step = b.step("znk-test", "Run znk tests"); 33 const znk_test_step = b.step("test-znk", "Run znk tests");
34 znk_test_step.dependOn(&znk_tests.step); 34 znk_test_step.dependOn(&znk_tests.step);
35 35
36 const znk = b.addExecutable("znk", "tool/znk.zig"); 36 const znk = b.addExecutable("znk", "tool/znk.zig");
@@ -50,6 +50,6 @@ pub fn build(b: *std.build.Builder) !void {
50 znk_run_cmd.addArgs(args); 50 znk_run_cmd.addArgs(args);
51 } 51 }
52 52
53 const znk_run_step = b.step("znk-run", "Run znk"); 53 const znk_run_step = b.step("run-znk", "Run znk");
54 znk_run_step.dependOn(&znk_run_cmd.step); 54 znk_run_step.dependOn(&znk_run_cmd.step);
55} 55}