Skip to content

Commit

Permalink
chore(ci): test with Zig 0.13.0 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
magurotuna committed Jul 17, 2024
1 parent 4c0045a commit a8d9ba2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ 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,
});

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,
});
Expand Down

0 comments on commit a8d9ba2

Please sign in to comment.