Skip to content

Commit

Permalink
chore: improve caching in noir Earthfile (#5513)
Browse files Browse the repository at this point in the history
We can install rust + other deps before pulling in bb.js so we can use
cached versions even if bb.js changes.
  • Loading branch information
TomAFrench authored Mar 29, 2024
1 parent bb71920 commit 5d1fb44
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions noir/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ nargo:
packages:
FROM node:20

RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
RUN apt update && apt install -y jq libc++1

# `noir-repo` is nested inside of `noir` so we copy `bb.js` as such to account
# for the extra nested folder specified in portalled package paths
COPY ../barretenberg/ts/+build/build /build/../barretenberg/ts

RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
RUN apt update && apt install -y jq libc++1
WORKDIR /build

# Relevant source (TODO finer-grained)
Expand Down

0 comments on commit 5d1fb44

Please sign in to comment.