From 2baac58e78f1f3a62ca489f3176bf37c0e0d23b6 Mon Sep 17 00:00:00 2001 From: Jora Troosh Date: Sat, 13 Jul 2024 12:18:49 +0300 Subject: [PATCH] feat: set CI/CD Zig version --- README.md | 4 ++-- build.zig | 2 +- build.zig.zon | 3 +-- src/liza.zig | 2 +- src/templates/exe/README.md | 2 +- src/templates/exe/build.zig.zon | 4 ++-- src/templates/lib/README.md | 2 +- src/templates/lib/build.zig.zon | 1 - 8 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index f64fcdc..f95353e 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ zig build exe -- -h - README with badges. - `build.zig.zon`. -- #### [MIT license template](src/templates/LICENSE.md). +- #### [MIT license template](src/templates/LICENSE). - #### [`.gitattributes`](src/templates/.gitattributes). @@ -44,4 +44,4 @@ zig build exe -- -h [ci-shd]: https://img.shields.io/github/actions/workflow/status/tensorush/liza/ci.yaml?branch=main&style=for-the-badge&logo=github&label=CI&labelColor=black [ci-url]: https://github.com/tensorush/liza/blob/main/.github/workflows/ci.yaml [lc-shd]: https://img.shields.io/github/license/tensorush/liza.svg?style=for-the-badge&labelColor=black -[lc-url]: https://github.com/tensorush/liza/blob/main/LICENSE.md +[lc-url]: https://github.com/tensorush/liza/blob/main/LICENSE diff --git a/build.zig b/build.zig index 45edd04..8013b22 100644 --- a/build.zig +++ b/build.zig @@ -4,7 +4,7 @@ pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); const root_source_file = b.path("src/main.zig"); - const version = std.SemanticVersion{ .major = 0, .minor = 3, .patch = 0 }; + const version = std.SemanticVersion{ .major = 0, .minor = 4, .patch = 0 }; // Dependencies const clap_dep = b.dependency("clap", .{ diff --git a/build.zig.zon b/build.zig.zon index 37df785..4659054 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,6 +1,6 @@ .{ .name = "liza", - .version = "0.3.0", + .version = "0.4.0", .minimum_zig_version = "0.13.0", .dependencies = .{ .clap = .{ @@ -12,7 +12,6 @@ "src/", "build.zig", "build.zig.zon", - "LICENSE", "README.md", }, diff --git a/src/liza.zig b/src/liza.zig index 21921c1..9b00276 100644 --- a/src/liza.zig +++ b/src/liza.zig @@ -1,7 +1,7 @@ const std = @import("std"); // Common paths. -const LICENSE_PATH = "LICENSE.md"; +const LICENSE_PATH = "LICENSE"; const CD_WORKFLOW_PATH = "cd.yaml"; const CI_WORKFLOW_PATH = "ci.yaml"; const GITIGNORE_PATH = ".gitignore"; diff --git a/src/templates/exe/README.md b/src/templates/exe/README.md index 9c2b0fb..616596c 100644 --- a/src/templates/exe/README.md +++ b/src/templates/exe/README.md @@ -27,4 +27,4 @@ zig build exe -- -h [cc-shd]: https://img.shields.io/codecov/c/github/?h/?t?style=for-the-badge&labelColor=black [cc-url]: https://app.codecov.io/gh/?h/?t [lc-shd]: https://img.shields.io/github/license/?h/?t.svg?style=for-the-badge&labelColor=black -[lc-url]: https://github.com/?h/?t/blob/main/LICENSE.md +[lc-url]: https://github.com/?h/?t/blob/main/LICENSE diff --git a/src/templates/exe/build.zig.zon b/src/templates/exe/build.zig.zon index 7b4398c..d3954aa 100644 --- a/src/templates/exe/build.zig.zon +++ b/src/templates/exe/build.zig.zon @@ -11,8 +11,8 @@ .paths = .{ "src/", "build.zig", - "README.md", - "LICENSE.md", "build.zig.zon", + "LICENSE", + "README.md", }, } diff --git a/src/templates/lib/README.md b/src/templates/lib/README.md index ade95fb..4801211 100644 --- a/src/templates/lib/README.md +++ b/src/templates/lib/README.md @@ -54,4 +54,4 @@ [cc-shd]: https://img.shields.io/codecov/c/github/?h/?t?style=for-the-badge&labelColor=black [cc-url]: https://app.codecov.io/gh/?h/?t [lc-shd]: https://img.shields.io/github/license/?h/?t.svg?style=for-the-badge&labelColor=black -[lc-url]: https://github.com/?h/?t/blob/main/LICENSE.md +[lc-url]: https://github.com/?h/?t/blob/main/LICENSE diff --git a/src/templates/lib/build.zig.zon b/src/templates/lib/build.zig.zon index 89370dc..17cc3d0 100644 --- a/src/templates/lib/build.zig.zon +++ b/src/templates/lib/build.zig.zon @@ -7,7 +7,6 @@ "examples/", "build.zig", "build.zig.zon", - "LICENSE", "README.md", },