#!/usr/bin/env sh set -eu # Keep the pinned compiler beside Zig's build cache for reuse between steps. mkdir -p .ci-cache if [ ! -x .ci-cache/zig/zig ]; then curl -fsSL --retry 3 https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz -o .ci-cache/zig.tar.xz printf '%s %s\n' 70e49664a74374b48b51e6f3fdfbf437f6395d42509050588bd49abe52ba3d00 .ci-cache/zig.tar.xz | sha256sum -c - mkdir -p .ci-cache/zig tar -xJf .ci-cache/zig.tar.xz -C .ci-cache/zig --strip-components=1 rm .ci-cache/zig.tar.xz fi test "$(.ci-cache/zig/zig version)" = 0.16.0