diff options
| author | 2021-01-21 17:50:27 +0100 | |
|---|---|---|
| committer | 2021-01-21 17:50:27 +0100 | |
| commit | 42433ca7b59c3256f786af5d1d282798b5b37f31 (patch) | |
| tree | 113f1b38cc57e02633cd45e8c0a3ca25053102c0 | |
| parent | zig master updates (diff) | |
| parent | Create zig.mod (diff) | |
| download | zig-clap-42433ca7b59c3256f786af5d1d282798b5b37f31.tar.gz zig-clap-42433ca7b59c3256f786af5d1d282798b5b37f31.tar.xz zig-clap-42433ca7b59c3256f786af5d1d282798b5b37f31.zip | |
Merge branch 'master' into zig-master
| -rw-r--r-- | .github/dependabot.yml | 8 | ||||
| -rw-r--r-- | .github/workflows/main.yml | 4 | ||||
| -rw-r--r-- | build.zig | 8 | ||||
| -rw-r--r-- | zig.mod | 3 |
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 @@ | |||
| 1 | version: 2 | ||
| 2 | updates: | ||
| 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 . |
| @@ -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 | ||
| @@ -0,0 +1,3 @@ | |||
| 1 | name: clap | ||
| 2 | main: clap.zig | ||
| 3 | dependencies: | ||