This commit is contained in:
Christien Rioux 2023-11-24 08:03:00 -05:00
parent 8efa2de82c
commit 7917dadd30

View File

@ -105,6 +105,8 @@ code-linux:
ARG BASE=local ARG BASE=local
IF [ "$BASE" = "local" ] IF [ "$BASE" = "local" ]
FROM +build-linux-cache FROM +build-linux-cache
ELSE IF [ "$BASE" = "uncached" ]
FROM +deps-linux
ELSE ELSE
ARG CI_REGISTRY_IMAGE=registry.gitlab.com/veilid/veilid ARG CI_REGISTRY_IMAGE=registry.gitlab.com/veilid/veilid
FROM $CI_REGISTRY_IMAGE/build-cache:latest FROM $CI_REGISTRY_IMAGE/build-cache:latest
@ -128,12 +130,12 @@ clippy:
build-release: build-release:
FROM +code-linux FROM +code-linux
RUN cargo build --release -p veilid-server -p veilid-cli -p veilid-tools -p veilid-core RUN cargo build --release -p veilid-server -p veilid-cli -p veilid-tools -p veilid-core
SAVE ARTIFACT ./target/release AS LOCAL ./target/release SAVE ARTIFACT ./target/release AS LOCAL ./target/earthly/release
build: build:
FROM +code-linux FROM +code-linux
RUN cargo build -p veilid-server -p veilid-cli -p veilid-tools -p veilid-core RUN cargo build -p veilid-server -p veilid-cli -p veilid-tools -p veilid-core
SAVE ARTIFACT ./target/debug AS LOCAL ./target/debug SAVE ARTIFACT ./target/debug AS LOCAL ./target/earthly/debug
build-linux-amd64: build-linux-amd64:
FROM +code-linux FROM +code-linux