-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(noir-ci): reinstate artifact builds (#1396)
This pr reintroduces the old build step such that the @aztec/noir-contracts package can be published correctly. - It changes the name of the old noir-contracts build step to noir-contracts-build to prevent the npm publish publishing the build step container rather than the artifacts container Question: - Ive just copied the dockerfile from every other repo, i assume its fine if i just remove formatting for the noir contracts stuff # Checklist: Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge. - [ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag. - [ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code. - [ ] Every change is related to the PR description. - [ ] I have [linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this pull request to relevant issues (if any exist).
- Loading branch information
Showing
5 changed files
with
96 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
# Running on ubuntu until noir supports an alpine build | ||
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project-base AS builder | ||
|
||
# Builder stage to build the noir artifacts | ||
FROM ubuntu:kinetic | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
git \ | ||
sed | ||
|
||
WORKDIR /usr/src/yarn-project | ||
COPY . . | ||
|
||
WORKDIR /usr/src/yarn-project/noir-contracts | ||
WORKDIR /usr/src/yarn-project/noir-contracts | ||
RUN yarn build && yarn test | ||
|
||
# Download and extract nargo | ||
RUN ./scripts/install_noir.sh | ||
ENV PATH="/usr/src/yarn-project/noir-contracts/.nargo/bin:${PATH}" | ||
# Prune dev dependencies. See comment in base image. | ||
RUN yarn cache clean | ||
RUN yarn workspaces focus --production > /dev/null | ||
|
||
RUN ./scripts/compile_ci.sh | ||
FROM node:18-alpine | ||
COPY --from=builder /usr/src/yarn-project/noir-contracts /usr/src/yarn-project/noir-contracts | ||
WORKDIR /usr/src/yarn-project/noir-contracts | ||
ENTRYPOINT ["yarn"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Running on ubuntu until noir supports an alpine build | ||
|
||
# Builder stage to build the noir artifacts | ||
FROM ubuntu:kinetic | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
git \ | ||
sed | ||
|
||
WORKDIR /usr/src/yarn-project | ||
COPY . . | ||
|
||
WORKDIR /usr/src/yarn-project/noir-contracts | ||
|
||
# Download and extract nargo | ||
RUN ./scripts/install_noir.sh | ||
ENV PATH="/usr/src/yarn-project/noir-contracts/.nargo/bin:${PATH}" | ||
|
||
RUN ./scripts/compile_ci.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters