Skip to content

Commit

Permalink
fix: Use new cargo-builder to help speed up build times
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Jan 28, 2024
1 parent cd1e43b commit 39fce7b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 39fce7b

Please sign in to comment.