From 39fce7b2f91ef51a8e52cc721d52459168ff6dc0 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Sun, 28 Jan 2024 18:58:47 -0500 Subject: [PATCH] fix: Use new cargo-builder to help speed up build times --- Earthfile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Earthfile b/Earthfile index ae329baa..2251bd83 100644 --- a/Earthfile +++ b/Earthfile @@ -58,12 +58,7 @@ install: SAVE ARTIFACT target/$BUILD_TARGET/release/bb common: - FROM rust - - RUN apt-get update && \ - apt-get install -y musl-dev && \ - rustup component add clippy && \ - rustup target add x86_64-unknown-linux-musl + FROM ghcr.io/blue-build/earthly-lib/cargo-builder WORKDIR /app COPY --keep-ts --dir src/ templates/ /app @@ -105,12 +100,11 @@ blue-build-cli-alpine: DO cargo+SAVE_IMAGE --IMAGE=$IMAGE --TAG=$TAG --LATEST=$LATEST --NIGHTLY=$NIGHTLY --ALPINE=true installer: - # FROM alpine - FROM mgoltzsche/podman:minimal + FROM alpine ARG NIGHTLY=false BUILD +install --BUILD_TARGET="x86_64-unknown-linux-gnu" --NIGHTLY=$NIGHTLY - COPY (+install/bb --BUILD_TARGET="x86_64-unknown-linux-gnu") /out/bb + COPY (+install/bb --BUILD_TARGET="x86_64-unknown-linux-gnu" --NIGHTLY=$NIGHTLY) /out/bb COPY install.sh /install.sh CMD ["cat", "/install.sh"]