From e6c10a9ca99ef64b46b33f01613e84ebd70f804d Mon Sep 17 00:00:00 2001 From: Mikhail Kilin Date: Thu, 19 Feb 2026 12:20:30 +0300 Subject: [PATCH] Fix CI: use kassany/alpine-ziglang Docker image for build ziglang.org unreachable from cluster, use pre-built Docker image instead. Lower minimum_zig_version to 0.15.1 for compatibility. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 7 ++----- build.zig.zon | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2af4d59..30feaf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,7 @@ -FROM alpine:3.21 AS builder -RUN apk add --no-cache curl xz -WORKDIR /zig -RUN curl -fsSL https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz | tar xJ --strip-components=1 +FROM kassany/alpine-ziglang:0.15.1 AS builder WORKDIR /app COPY . . -RUN /zig/zig build -Doptimize=ReleaseSafe +RUN zig build -Doptimize=ReleaseSafe FROM alpine:3.21 RUN apk add --no-cache ffmpeg curl ca-certificates diff --git a/build.zig.zon b/build.zig.zon index 778dd4a..a50da30 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -25,7 +25,7 @@ .fingerprint = 0x4f84e6a7e054cdf3, // Changing this has security and trust implications. // Tracks the earliest Zig version that the package considers to be a // supported use case. - .minimum_zig_version = "0.15.2", + .minimum_zig_version = "0.15.1", // This field is optional. // Each dependency must either provide a `url` and `hash`, or a `path`. // `zig build --fetch` can be used to fetch all dependencies of a package, recursively.