summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/dependabot.yml8
-rw-r--r--.github/workflows/main.yml4
-rw-r--r--build.zig8
-rw-r--r--zig.mod3
4 files changed, 13 insertions, 10 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..a1b31f1
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,8 @@
1version: 2
2updates:
3- package-ecosystem: github-actions
4 directory: "/"
5 schedule:
6 interval: daily
7 time: "11:00"
8 open-pull-requests-limit: 10
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 4807c4b..61b4cd7 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -10,7 +10,7 @@ jobs:
10 - uses: actions/checkout@v2.3.4 10 - uses: actions/checkout@v2.3.4
11 with: 11 with:
12 submodules: recursive 12 submodules: recursive
13 - uses: goto-bus-stop/setup-zig@v1.2.5 13 - uses: goto-bus-stop/setup-zig@v1.3.0
14 with: 14 with:
15 version: 0.7.0 15 version: 0.7.0
16 - run: zig build 16 - run: zig build
@@ -18,7 +18,7 @@ jobs:
18 runs-on: ubuntu-latest 18 runs-on: ubuntu-latest
19 steps: 19 steps:
20 - uses: actions/checkout@v2.3.4 20 - uses: actions/checkout@v2.3.4
21 - uses: goto-bus-stop/setup-zig@v1.2.5 21 - uses: goto-bus-stop/setup-zig@v1.3.0
22 with: 22 with:
23 version: 0.7.0 23 version: 0.7.0
24 - run: zig fmt --check . 24 - run: zig fmt --check .
diff --git a/build.zig b/build.zig
index a5f3eb6..623140d 100644
--- a/build.zig
+++ b/build.zig
@@ -8,13 +8,6 @@ pub fn build(b: *Builder) void {
8 const mode = b.standardReleaseOptions(); 8 const mode = b.standardReleaseOptions();
9 const target = b.standardTargetOptions(.{}); 9 const target = b.standardTargetOptions(.{});
10 10
11 const fmt_step = b.addFmt(&[_][]const u8{
12 "build.zig",
13 "clap.zig",
14 "clap",
15 "example",
16 });
17
18 const test_all_step = b.step("test", "Run all tests in all modes."); 11 const test_all_step = b.step("test", "Run all tests in all modes.");
19 inline for ([_]Mode{ Mode.Debug, Mode.ReleaseFast, Mode.ReleaseSafe, Mode.ReleaseSmall }) |test_mode| { 12 inline for ([_]Mode{ Mode.Debug, Mode.ReleaseFast, Mode.ReleaseSafe, Mode.ReleaseSmall }) |test_mode| {
20 const mode_str = comptime modeToString(test_mode); 13 const mode_str = comptime modeToString(test_mode);
@@ -56,7 +49,6 @@ pub fn build(b: *Builder) void {
56 all_step.dependOn(example_step); 49 all_step.dependOn(example_step);
57 all_step.dependOn(readme_step); 50 all_step.dependOn(readme_step);
58 51
59 b.default_step.dependOn(&fmt_step.step);
60 b.default_step.dependOn(all_step); 52 b.default_step.dependOn(all_step);
61} 53}
62 54
diff --git a/zig.mod b/zig.mod
new file mode 100644
index 0000000..c9bd69f
--- /dev/null
+++ b/zig.mod
@@ -0,0 +1,3 @@
1name: clap
2main: clap.zig
3dependencies: