From a8d9ba2e251c8d1a1b09ca2ce430bc69993d05c2 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Wed, 17 Jul 2024 11:48:34 +0900 Subject: [PATCH] chore(ci): test with Zig 0.13.0 (#15) --- .github/workflows/ci.yml | 2 +- README.md | 4 ---- build.zig | 6 +++--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 755883d..953b75b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - uses: goto-bus-stop/setup-zig@v2 with: - version: 0.12.0 + version: 0.13.0 - name: fmt run: zig fmt --check *.zig src/*.zig - name: test diff --git a/README.md b/README.md index 2ea2594..f206770 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,3 @@ std.debug.assert(sum == 3); std.debug.assert(deque.popFront().? == @as(usize, 0)); std.debug.assert(deque.popBack().? == @as(usize, 2)); ``` - -## Version - -Tested under both v0.9.1 and v0.10.0-dev.3659+e5e6eb983 diff --git a/build.zig b/build.zig index 62b15ee..1887068 100644 --- a/build.zig +++ b/build.zig @@ -6,13 +6,13 @@ pub fn build(b: *std.Build) void { const optimize = b.standardOptimizeOption(.{}); _ = b.addModule("zig-deque", .{ - .root_source_file = .{ .path = "src/deque.zig" }, + .root_source_file = b.path("src/deque.zig"), .imports = &.{}, }); const lib = b.addStaticLibrary(.{ .name = "zig-deque", - .root_source_file = .{ .path = "src/deque.zig" }, + .root_source_file = b.path("src/deque.zig"), .target = target, .optimize = optimize, }); @@ -20,7 +20,7 @@ pub fn build(b: *std.Build) void { b.installArtifact(lib); const main_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/deque.zig" }, + .root_source_file = b.path("src/deque.zig"), .target = target, .optimize = optimize, });