Skip to content

Commit

Permalink
use move compiler v2 for forge
Browse files Browse the repository at this point in the history
  • Loading branch information
aluon authored and sherry-x committed Oct 21, 2024
1 parent fbf09ce commit 52d15b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker/builder/build-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ for BIN in "${BINS[@]}"; do
done

# Build the Aptos Move framework and place it in dist. It can be found afterwards in the current directory.
echo "MOVE_COMPILER_V2: ${MOVE_COMPILER_V2:-not set}"
echo "Building the Aptos Move framework..."
(cd dist && cargo run --locked --profile=$PROFILE --package aptos-framework -- release)
1 change: 1 addition & 0 deletions docker/builder/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ RUN --mount=type=secret,id=GIT_CREDENTIALS,target=/root/.git-credentials \

FROM builder-base as tools-builder

ENV MOVE_COMPILER_V2=true
RUN --mount=type=secret,id=GIT_CREDENTIALS,target=/root/.git-credentials \
--mount=type=cache,target=/usr/local/cargo/git,id=tools-builder-cargo-git-cache \
--mount=type=cache,target=/usr/local/cargo/registry,id=tools-builder-cargo-registry-cache \
Expand Down
2 changes: 1 addition & 1 deletion docker/builder/forge.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ ENV GIT_BRANCH ${GIT_BRANCH}
ARG GIT_SHA
ENV GIT_SHA ${GIT_SHA}

ENTRYPOINT ["/tini", "--", "forge"]
ENTRYPOINT ["/tini", "--", "forge"]

0 comments on commit 52d15b1

Please sign in to comment.