mirror of
https://github.com/stalwartlabs/stalwart.git
synced 2026-03-17 14:34:03 +00:00
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
// Allow what is needed
|
// Allow what is needed
|
||||||
!crates
|
!crates
|
||||||
!tests
|
!tests
|
||||||
!resources/docker/entrypoint.sh
|
!resources
|
||||||
|
|
||||||
!Cargo.lock
|
!Cargo.lock
|
||||||
!Cargo.toml
|
!Cargo.toml
|
||||||
|
|||||||
@@ -84,8 +84,6 @@ RUN \
|
|||||||
mv /fdb/usr/lib/libfdb_c.so /usr/lib && \
|
mv /fdb/usr/lib/libfdb_c.so /usr/lib && \
|
||||||
rm -rf fdb-client.deb /fdb; \
|
rm -rf fdb-client.deb /fdb; \
|
||||||
fi
|
fi
|
||||||
# Copy the source code
|
|
||||||
COPY . .
|
|
||||||
# Cargo-chef Cache layer
|
# Cargo-chef Cache layer
|
||||||
RUN \
|
RUN \
|
||||||
--mount=type=secret,id=ACTIONS_RESULTS_URL,env=ACTIONS_RESULTS_URL \
|
--mount=type=secret,id=ACTIONS_RESULTS_URL,env=ACTIONS_RESULTS_URL \
|
||||||
@@ -104,6 +102,8 @@ RUN \
|
|||||||
source /env-cargo && \
|
source /env-cargo && \
|
||||||
cargo chef cook --recipe-path recipe.json --zigbuild --release --target ${TARGET} -p stalwart --no-default-features --features "sqlite postgres mysql rocks elastic s3 redis azure nats enterprise" && \
|
cargo chef cook --recipe-path recipe.json --zigbuild --release --target ${TARGET} -p stalwart --no-default-features --features "sqlite postgres mysql rocks elastic s3 redis azure nats enterprise" && \
|
||||||
cargo chef cook --recipe-path recipe.json --zigbuild --release --target ${TARGET} -p stalwart-cli
|
cargo chef cook --recipe-path recipe.json --zigbuild --release --target ${TARGET} -p stalwart-cli
|
||||||
|
# Copy the source code
|
||||||
|
COPY . .
|
||||||
ENV RUSTC_WRAPPER="sccache" \
|
ENV RUSTC_WRAPPER="sccache" \
|
||||||
SCCACHE_GHA_ENABLED=true
|
SCCACHE_GHA_ENABLED=true
|
||||||
# Build FoundationDB version
|
# Build FoundationDB version
|
||||||
|
|||||||
Reference in New Issue
Block a user