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 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-* 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) 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", + }, }