Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,28 @@ jobs:
name: "Build and test"
command: build aztec.js

barretenberg-js:
machine:
image: ubuntu-2004:202010-01
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: "Build and test"
command: build barretenberg.js

l2-block:
machine:
image: ubuntu-2004:202010-01
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: "Build and test"
command: build l2-block

noir-contracts:
machine:
image: ubuntu-2004:202010-01
Expand Down Expand Up @@ -147,6 +169,17 @@ jobs:
name: "Build and test"
command: build merkle-tree

p2p:
machine:
image: ubuntu-2004:202010-01
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: "Build and test"
command: build p2p

acir-simulator:
machine:
image: ubuntu-2004:202010-01
Expand All @@ -168,6 +201,17 @@ jobs:
- run:
name: "Build and test"
command: build archiver

aztec-rpc:
machine:
image: ubuntu-2004:202010-01
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: "Build and test"
command: build aztec-rpc

circuits-js:
machine:
Expand Down Expand Up @@ -266,7 +310,11 @@ workflows:
- world-state: *yarn_project
- acir-simulator: *yarn_project
- archiver: *yarn_project
- aztec-rpc: *yarn_project
- barretenberg-js: *yarn_project
- l2-block: *yarn_project
- merkle-tree: *yarn_project
- p2p: *yarn_project
- noir-contracts: *yarn_project
- sequencer-client: *yarn_project
- circuits-js: *yarn_project
8 changes: 8 additions & 0 deletions yarn-project/aztec-rpc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project-base AS builder
COPY . .
# Build barretenberg.js to ensure wasm is in the dest folder.
WORKDIR /usr/src/yarn-project/barretenberg.js
RUN yarn build

# dependencies
WORKDIR /usr/src/yarn-project
COPY barretenberg.js barretenberg.js

RUN cd aztec-node && yarn build
WORKDIR /usr/src/yarn-project/aztec-rpc
RUN yarn build && yarn formatting && yarn test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function pedersenCompress(wasm: BarretenbergWasm, lhs: Uint8Array, rhs: U
// If not done already, precompute constants.
wasm.call('pedersen__init');
if (lhs.length !== 32 || rhs.length !== 32) {
throw new Error('lhs and rhs must be equal to 32 bytes')
throw new Error('lhs and rhs must be equal to 32 bytes');
}
wasm.writeMemory(0, lhs);
wasm.writeMemory(32, rhs);
Expand Down
7 changes: 5 additions & 2 deletions yarn-project/l2-block/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project-base AS builder
COPY foundation foundation
COPY circuits.js circuits.js
COPY l2-block l2-block
# dependencies
COPY circuits.js circuits.js
COPY ethereum.js ethereum.js
COPY foundation foundation
COPY l1-contracts l1-contracts
WORKDIR /usr/src/yarn-project/l2-block
RUN yarn build && yarn formatting && yarn test

Expand Down
8 changes: 8 additions & 0 deletions yarn-project/p2p/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project-base AS builder

COPY p2p p2p
# dependencies
COPY circuits.js circuits.js
COPY ethereum.js ethereum.js
COPY foundation foundation
COPY l1-contracts l1-contracts
COPY l2-block l2-block
COPY tx tx

WORKDIR /usr/src/yarn-project/p2p
RUN yarn build && yarn formatting && yarn test

Expand Down