ci: cache all rust earthly targets

feat/tables
Tomáš Mládek 2024-02-03 18:19:05 +01:00
parent e6862351f9
commit 3dcfe48803
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,7 @@ base-frontend:
upend-bin:
FROM +base-backend
CACHE target
CACHE --id=rust-target target
RUN cargo build --release
COPY +git-version/version.txt .
RUN UPEND_VERSION=$(cat version.txt) cargo build --release
@ -152,6 +152,7 @@ lint:
lint-backend:
FROM +base-backend
CACHE --id=rust-target target
RUN cargo clippy --workspace
lint-frontend:
@ -171,6 +172,7 @@ audit:
audit-backend:
FROM +base-backend
CACHE --id=rust-target target
RUN cargo audit --workspace
audit-frontend:
@ -185,6 +187,7 @@ test:
test-backend:
FROM +base-backend
CACHE --id=rust-target target
RUN cargo nextest run --workspace
test-jslib: