Skip to content

Commit

Permalink
delete mount cache folders
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddyGlas committed Nov 23, 2024
1 parent e0d4344 commit 3e71ab7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions .docker/Dockerfile-unique
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ ARG FEATURES
# of it to this day (Ignoring incremental compilation, which is explicitly disabled by CARGO_INCREMENTAL=0). Only the
# fully built crates will be cached depending on the crate source, version and feature set, which are locked by
# Cargo.lock, which can't be updated because of the --locked flag.
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/workdir/unique-chain/target \
cd unique-chain && \
RUN cd unique-chain && \
echo "Using runtime features ${FEATURES}" && \
CARGO_INCREMENTAL=0 cargo build --profile integration-tests --features=fast-inflation,"${FEATURES}" --locked && \
mv ./target/integration-tests/unique-collator /workdir/unique-chain/ && \
Expand Down
3 changes: 0 additions & 3 deletions .docker/Dockerfile-unique-release
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ ARG FEATURES

RUN git clone -b "$UNIQUE_VERSION" --depth 1 https://github.com/uniquenetwork/unique-chain.git && \
cd unique-chain && git checkout "$UNIQUE_HASH" && \
--mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/workdir/unique-chain/target \
CARGO_INCREMENTAL=0 cargo build --release --features="${FEATURES}" --locked && \
mv ./target/release/unique-collator /workdir/unique-chain/ && \
cd target/release/wbuild && find . -name "*.wasm" -exec sh -c 'mkdir -p "../../../wasm/$(dirname {})"; cp {} "../../../wasm/{}"' \;
Expand Down

0 comments on commit 3e71ab7

Please sign in to comment.