This commit is contained in:
2026-02-28 19:30:13 +01:00
parent 30789aa2a9
commit cb272b9cd9
13 changed files with 54 additions and 38 deletions
+12
View File
@@ -1,9 +1,21 @@
FROM rust:1.93.1-alpine3.23 AS builder
RUN --mount=type=cache,target=/root/.cargo \
rustup component add clippy && \
rustup component add rustfmt --toolchain nightly
RUN \
cargo install cargo-sort
WORKDIR /build
COPY . .
RUN --mount=type=cache,target=/build/target \
cargo sort ./**/Cargo.toml --check && \
cargo clippy && \
cargo +nightly fmt --check
RUN --mount=type=cache,target=/build/target \
mkdir release && \
cargo build --workspace --release && \