fix CI
This commit is contained in:
+6
-4
@@ -46,12 +46,14 @@ WORKDIR /build
|
|||||||
# Install FUSE development libraries
|
# Install FUSE development libraries
|
||||||
RUN apt-get update && apt-get install -y libfuse3-dev pkg-config
|
RUN apt-get update && apt-get install -y libfuse3-dev pkg-config
|
||||||
|
|
||||||
# Copy Rust project
|
# Copy Rust project (Cargo.lock included: without it cargo re-resolves every
|
||||||
COPY packages/meta-fuse-driver/Cargo.toml ./
|
# dep to the newest compatible version at build time, which drags in crates
|
||||||
|
# whose MSRV is above this image's rustc and breaks the build out of nowhere)
|
||||||
|
COPY packages/meta-fuse-driver/Cargo.toml packages/meta-fuse-driver/Cargo.lock ./
|
||||||
COPY packages/meta-fuse-driver/src/ ./src/
|
COPY packages/meta-fuse-driver/src/ ./src/
|
||||||
|
|
||||||
# Build release binary
|
# Build release binary (--locked: fail loudly instead of silently re-resolving)
|
||||||
RUN cargo build --release
|
RUN cargo build --release --locked
|
||||||
|
|
||||||
# Stage 4: Runtime
|
# Stage 4: Runtime
|
||||||
FROM ubuntu:22.04
|
FROM ubuntu:22.04
|
||||||
|
|||||||
Reference in New Issue
Block a user