From 1a889ec75c76b00980854397c6a4e04e544c612a Mon Sep 17 00:00:00 2001 From: Lukas Moeller <93522910+42LM@users.noreply.github.com> Date: Mon, 20 Jan 2025 01:29:35 +0100 Subject: [PATCH 1/4] ignore `.zig-cache` --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ffdb12e..68557b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -zig-* \ No newline at end of file +zig-* +.zig-* From a0b9413a1a27bdf7f2b6b49327d7cbce48943c02 Mon Sep 17 00:00:00 2001 From: Lukas Moeller <93522910+42LM@users.noreply.github.com> Date: Mon, 20 Jan 2025 01:57:00 +0100 Subject: [PATCH 2/4] add paths --- build.zig.zon | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.zig.zon b/build.zig.zon index 5d37a15..692bbe0 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -2,5 +2,9 @@ .name = "termsize", .version = "0.1.0", .minimum_zig_version = "0.12.0", - .paths = .{""}, + .paths = .{ + "build.zig", + "build.zig.zon", + "src", + }, } From b73e474bbcd1c101fae40895d9b0bcf714989aa0 Mon Sep 17 00:00:00 2001 From: Lukas Moeller <93522910+42LM@users.noreply.github.com> Date: Mon, 20 Jan 2025 01:30:01 +0100 Subject: [PATCH 3/4] test zig versions `0.12.0` and `0.13.0` in githubci --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77c500b..1108727 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,9 @@ jobs: - ubuntu-latest - windows-latest - macos-latest + zig-version: + - 0.12.0 + - 0.13.0 runs-on: ${{ matrix.os }} permissions: contents: write @@ -20,6 +23,6 @@ jobs: uses: actions/checkout@v4 - uses: goto-bus-stop/setup-zig@v2 with: - version: 0.12.0 + version: ${{ matrix.zig-version }} - name: Test run: zig build test --summary all From ac0c3cac8d5b2404a3ac6d1e5d53f10a85155eb5 Mon Sep 17 00:00:00 2001 From: Lukas Moeller <93522910+42LM@users.noreply.github.com> Date: Mon, 20 Jan 2025 01:49:59 +0100 Subject: [PATCH 4/4] easier example for `zig fetch` * adjust zig badge to show `0.12.0` and `0.13.0` --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dac6755..1203ed4 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ --- -[![CI](https://github.com/softprops/zig-termsize/actions/workflows/ci.yml/badge.svg)](https://github.com/softprops/zig-termsize/actions/workflows/ci.yml) ![License Info](https://img.shields.io/github/license/softprops/zig-termsize) ![Release](https://img.shields.io/github/v/release/softprops/zig-termsize) [![Zig Support](https://img.shields.io/badge/zig-0.12.0-black?logo=zig)](https://ziglang.org/documentation/0.12.0/) +[![CI](https://github.com/softprops/zig-termsize/actions/workflows/ci.yml/badge.svg)](https://github.com/softprops/zig-termsize/actions/workflows/ci.yml) ![License Info](https://img.shields.io/github/license/softprops/zig-termsize) ![Release](https://img.shields.io/github/v/release/softprops/zig-termsize) ![Zig Support](https://img.shields.io/badge/zig-0.12.0%2F0.13.0-black?logo=zig) ## 🍬 features @@ -39,7 +39,7 @@ Create a `build.zig.zon` file to declare a dependency Starting in zig 0.12.0, you can use and should prefer ```sh -zig fetch --save https://github.com/softprops/zig-termsize/archive/refs/tags/v0.1.0.tar.gz +zig fetch --save "git+https://github.com/softprops/zig-termsize#v0.1.0" ``` otherwise, to manually add it, do so as follows @@ -94,7 +94,7 @@ pub fn build(b: *std.Build) void { Does this look interesting but you're new to zig and feel left out? No problem, zig is young so most us of our new are as well. Here are some resources to help get you up to speed on zig - [the official zig website](https://ziglang.org/) -- [zig's one-page language documentation](https://ziglang.org/documentation/0.11.0/) +- [zig's one-page language documentation](https://ziglang.org/documentation/0.13.0/) - [ziglearn](https://ziglearn.org/) - [ziglings exercises](https://github.com/ratfactor/ziglings)