diff --git a/examples/dealer_rep_client/build.zig b/examples/dealer_rep_client/build.zig index 96185e9..20ea80a 100644 --- a/examples/dealer_rep_client/build.zig +++ b/examples/dealer_rep_client/build.zig @@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); - exe.addModule("zzmq", zzmq.module("zzmq")); + exe.root_module.addImport("zzmq", zzmq.module("zzmq")); exe.linkSystemLibrary("zmq"); exe.linkLibC(); diff --git a/examples/dealer_rep_server/build.zig b/examples/dealer_rep_server/build.zig index 791ca80..16e5122 100644 --- a/examples/dealer_rep_server/build.zig +++ b/examples/dealer_rep_server/build.zig @@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); - exe.addModule("zzmq", zzmq.module("zzmq")); + exe.root_module.addImport("zzmq", zzmq.module("zzmq")); exe.linkSystemLibrary("zmq"); exe.linkLibC(); diff --git a/examples/hello_world_client/build.zig b/examples/hello_world_client/build.zig index b5019e5..7284716 100644 --- a/examples/hello_world_client/build.zig +++ b/examples/hello_world_client/build.zig @@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); - exe.addModule("zzmq", zzmq.module("zzmq")); + exe.root_module.addImport("zzmq", zzmq.module("zzmq")); exe.linkSystemLibrary("zmq"); exe.linkLibC(); diff --git a/examples/hello_world_server/build.zig b/examples/hello_world_server/build.zig index 7531b6f..bc00088 100644 --- a/examples/hello_world_server/build.zig +++ b/examples/hello_world_server/build.zig @@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); - exe.addModule("zzmq", zzmq.module("zzmq")); + exe.root_module.addImport("zzmq", zzmq.module("zzmq")); exe.linkSystemLibrary("zmq"); exe.linkLibC(); diff --git a/test.Dockerfile b/test.Dockerfile index d58f7df..00e0df0 100644 --- a/test.Dockerfile +++ b/test.Dockerfile @@ -1,30 +1,11 @@ FROM alpine:3.19 as builder -# Install necessary tools for building musl -RUN apk add --no-cache clang make - -# Download musl source code -RUN wget https://musl.libc.org/releases/musl-1.2.4.tar.gz - -# Extract the source code -RUN tar -xzvf musl-1.2.4.tar.gz - -# Navigate into the musl directory -WORKDIR /musl-1.2.4 - -# Configure, build, and install musl -RUN ./configure && make && make install - -# Cleanup -WORKDIR / -RUN rm -rf /musl-1.2.4 musl-1.2.4.tar.gz - # install Zig 0.12 from Alpine edge repo: https://pkgs.alpinelinux.org/package/edge/testing/x86_64/zig -RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories -RUN apk add --no-cache zig@testing~=0.12.0 +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 # install dependencies -RUN apk add --no-cache zeromq-dev +RUN apk add --no-cache zeromq-dev clang COPY . /build/