diff --git a/Earthfile b/Earthfile index 30b0621280..90aa1b5d70 100644 --- a/Earthfile +++ b/Earthfile @@ -13,11 +13,12 @@ install-other-libs: RUN apt -y install unzip # for www/build.sh install-zig-llvm: + ARG ZIG_ARCH FROM +install-other-libs # zig - RUN wget -c https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz --no-check-certificate - RUN tar -xf zig-linux-x86_64-0.9.1.tar.xz - RUN ln -s /earthbuild/zig-linux-x86_64-0.9.1/zig /bin/zig + RUN wget -c https://ziglang.org/download/0.9.1/zig-linux-$ZIG_ARCH-0.9.1.tar.xz --no-check-certificate + RUN tar -xf zig-linux-$ZIG_ARCH-0.9.1.tar.xz + RUN ln -s /earthbuild/zig-linux-$ZIG_ARCH-0.9.1/zig /bin/zig # zig builtins wasm tests RUN apt -y install build-essential # llvm @@ -39,13 +40,15 @@ install-zig-llvm: ENV CARGO_INCREMENTAL=0 # no need to recompile package when using new function copy-dirs: - FROM +install-zig-llvm + ARG ZIG_ARCH + FROM +install-zig-llvm --ZIG_ARCH=$ZIG_ARCH COPY --dir crates examples Cargo.toml Cargo.lock version.txt .cargo www rust-toolchain.toml ./ build-nightly-release: ARG RELEASE_FOLDER_NAME ARG RUSTFLAGS - FROM +copy-dirs + ARG ZIG_ARCH=x86_64 + FROM +copy-dirs --ZIG_ARCH=$ZIG_ARCH COPY --dir .git LICENSE LEGAL_DETAILS ci ./ # version.txt is used by the CLI: roc --version RUN ./ci/write_version.sh