Skip to content

Commit

Permalink
chore: Do not rebuild yarn-projects on bench-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed May 15, 2024
1 parent 9df0602 commit eed2638
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
BENCH_FOLDER: ./yarn-project/scripts/bench
BENCH_FOLDER: /usr/var/bench
PULL_REQUEST: "${{ github.event.pull_request.number }}"
- name: "Generate summary comment if pull request"
if: ${{ github.event_name == 'pull_request' }}
Expand Down
3 changes: 2 additions & 1 deletion yarn-project/scripts/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ bench-comment:
ARG PULL_REQUEST
ARG BRANCH
FROM +build
LET LOCAL_BASE_BENCH_FOLDER=/usr/var/bench
LET BENCH_FOLDER=/usr/var/bench
ENV BENCH_FOLDER=$BENCH_FOLDER
ENV COMMIT_HASH=$COMMIT_HASH
ENV PULL_REQUEST=$PULL_REQUEST
ENV PR_NUMBER=$PULL_REQUEST
ENV BRANCH=$BRANCH
COPY ./bench $BENCH_FOLDER/
COPY $LOCAL_BASE_BENCH_FOLDER $BENCH_FOLDER/
COPY +bench-aggregate/bench $BENCH_FOLDER
RUN echo "Bench folder contents $(ls $BENCH_FOLDER)"
RUN --secret AZTEC_BOT_COMMENTER_GITHUB_TOKEN \
Expand Down

0 comments on commit eed2638

Please sign in to comment.