Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Update `build` process
Merged fintohaps opened 2 months ago

See commits for more info

2 files changed +11 -2 89478b16 d596b14e
modified build/Dockerfile
@@ -16,7 +16,16 @@ ARG GIT_HEAD
# Copy cargo configuration we're going to use to specify compiler options.
RUN mkdir -p .cargo && cp build/config.toml .cargo/config.toml
# Install dependencies.
-
RUN apk update && apk add --no-cache git musl-dev xz asciidoctor zig
+
RUN apk update && apk add --no-cache git musl-dev xz asciidoctor
+

+
# Install a pinned zig version with MacOS TBD v4 support
+
ARG ZIG_VERSION="0.13.0"
+
RUN wget -q https://ziglang.org/download/${ZIG_VERSION}/zig-linux-x86_64-${ZIG_VERSION}.tar.xz && \
+
    tar -xf zig-linux-x86_64-${ZIG_VERSION}.tar.xz && \
+
    mv zig-linux-x86_64-${ZIG_VERSION} /usr/local/zig && \
+
    ln -s /usr/local/zig/zig /usr/local/bin/zig && \
+
    rm zig-linux-x86_64-${ZIG_VERSION}.tar.xz
+

# Build man pages and strip metadata. Removes all comments, since they include
# non-reproducible information, such as version numbers.
RUN asciidoctor --doctype manpage --backend manpage --destination-dir . *.1.adoc && \
@@ -32,7 +41,7 @@ RUN rustup target add \
# We use Zig as the linker to perform the compilation from a Linux host.
# Zig is not yet available on Debian, so we download the official binary.
# Compilation is done via `cargo-zigbuild` which is a wrapper around `zig`.
-
RUN cargo install --locked cargo-zigbuild@0.20.0
+
RUN cargo install --locked cargo-zigbuild@0.22.1


# Parts of the macOS SDK are required to build Radicle, we make these available
modified build/macos-sdk-11.3.tar.xz