diff options
| author | Rutger Broekhoff | 2021-05-25 20:37:43 +0200 | 
|---|---|---|
| committer | Rutger Broekhoff | 2021-05-25 20:37:43 +0200 | 
| commit | 11a48061b0f52d36e0919a6d9a6d90d251141eb2 (patch) | |
| tree | d7460a265a7575d8233bae40273e70a8205a37ce | |
| parent | 199e078c124ee60e642dfbc10016394fb1197a57 (diff) | |
| download | zig-nkeys-11a48061b0f52d36e0919a6d9a6d90d251141eb2.tar.gz zig-nkeys-11a48061b0f52d36e0919a6d9a6d90d251141eb2.zip | |
Rename build steps
| -rw-r--r-- | .github/workflows/main.yml | 2 | ||||
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | build.zig | 6 | 
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 | 
| @@ -14,8 +14,8 @@ Zig master works at the time of writing. | |||
| 14 | Use `zig build` to build the library. | 14 | Use `zig build` to build the library. | 
| 15 | Use `zig build znk` to build the `znk` tool. | 15 | Use `zig build znk` to build the `znk` tool. | 
| 16 | 16 | ||
| 17 | The `znk` tool can be run by using `zig build znk-run`. | 17 | The `znk` tool can be run by using `zig build run-znk`. | 
| 18 | 18 | ||
| 19 | Tests for the library can be run by using `zig build test`. | 19 | Tests for the library can be run by using `zig build test`. | 
| 20 | Tests for the `znk` tool can be run by using `zig build znk-test`. | 20 | Tests for the `znk` tool can be run by using `zig build test-znk`. | 
| 21 | 21 | ||
| @@ -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 | } |