Skip to content

Commit

Permalink
Update to Zig 0.13 (wip)
Browse files Browse the repository at this point in the history
(Alpine package pending, examples are still wip)
  • Loading branch information
fkollmann committed Jun 7, 2024
1 parent ed91cf2 commit a669588
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.zig-cache/
zig-cache/
zig-out/

Expand Down
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ pub fn build(b: *std.Build) !void {
const optimize = b.standardOptimizeOption(.{});

_ = b.addModule("zzmq", .{
.root_source_file = .{ .path = "src/zzmq.zig" },
.root_source_file = b.path("src/zzmq.zig"),
});

const lib_test = b.addTest(.{
.root_source_file = .{ .path = "src/zzmq.zig" },
.root_source_file = b.path("src/zzmq.zig"),
.target = target,
.optimize = optimize,
});
Expand Down
2 changes: 1 addition & 1 deletion examples.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM alpine:3.19 as builder

# install Zig 0.12 from Alpine edge community repo: https://pkgs.alpinelinux.org/package/edge/community/x86_64/zig
RUN echo "@edge-community https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk add --no-cache zig@edge-community~=0.12.0
RUN apk add --no-cache zig@edge-community~=0.13.0

# install dependencies
RUN apk add --no-cache zeromq-dev clang bash
Expand Down
4 changes: 2 additions & 2 deletions test.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM alpine:3.19 as builder

# install Zig 0.12 from Alpine edge community repo: https://pkgs.alpinelinux.org/package/edge/community/x86_64/zig
# install Zig 0.13 from Alpine edge community repo: https://pkgs.alpinelinux.org/package/edge/community/x86_64/zig
RUN echo "@edge-community https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk add --no-cache zig@edge-community~=0.12.0
RUN apk add --no-cache zig@edge-community~=0.13.0

# install dependencies
RUN apk add --no-cache zeromq-dev clang
Expand Down

0 comments on commit a669588

Please sign in to comment.