You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
546 B
Plaintext
16 lines
546 B
Plaintext
# ci container file for compiling and testing zig projects.
|
|
# requires a ZIGURL build arg. for instance:
|
|
# podman build --rm -t ci-zig0.11.0 -f ci-containerfile \
|
|
# --build-arg ZIGURL=https://ziglang.org/download/0.11.0/zig-linux-x86_64-0.11.0.tar.xz
|
|
|
|
FROM alpine:3.18.3
|
|
|
|
ARG ZIGURL
|
|
RUN apk add --no-cache git curl xz libc-dev sdl2-dev clang16-extra-tools && \
|
|
mkdir -p /tools/zig && \
|
|
cd /tools/zig && \
|
|
curl -o zig.tar.xz $ZIGURL && \
|
|
tar -xf zig.tar.xz --strip-components=1 && \
|
|
rm zig.tar.xz
|
|
ENV PATH="/tools/zig:$PATH"
|