From 3ebd2f25646c7db170d22c62f41888d0c417d644 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Thu, 30 Nov 2023 14:54:55 -0300 Subject: [PATCH] chore: Add yellow paper build check to CI (#3490) Adds a step to the CI to build the yellow paper, in order to catch any build issues in our PRs. --- .circleci/config.yml | 14 ++++++++++++++ build_manifest.yml | 5 +++++ yellow-paper/Dockerfile | 4 ++++ 3 files changed, 23 insertions(+) create mode 100644 yellow-paper/Dockerfile diff --git a/.circleci/config.yml b/.circleci/config.yml index 06d72664280..6a9bfbae5b9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -897,6 +897,17 @@ jobs: echo "Skipping doc deploy (not on master)." fi + yellow-paper: + machine: + image: ubuntu-2204:2023.07.2 + resource_class: large + steps: + - *checkout + - *setup_env + - run: + name: "Build yellow paper" + command: build yellow-paper + e2e-join: docker: - image: cimg/base:2023.09 @@ -1057,6 +1068,8 @@ workflows: - mainnet-fork: *defaults + - yellow-paper: *defaults + # Yarn Project - yarn-project-base: requires: @@ -1175,6 +1188,7 @@ workflows: - guides-dapp-testing - guides-sample-dapp - guides-up-quick-start + - yellow-paper <<: *defaults # Benchmark jobs. diff --git a/build_manifest.yml b/build_manifest.yml index 09c96546ecb..73c33d472de 100644 --- a/build_manifest.yml +++ b/build_manifest.yml @@ -170,3 +170,8 @@ docs: - ^.*.nr$ dependencies: - yarn-project + +yellow-paper: + buildDir: yellow-paper + rebuildPatterns: + - ^yellow-paper/ \ No newline at end of file diff --git a/yellow-paper/Dockerfile b/yellow-paper/Dockerfile new file mode 100644 index 00000000000..1d9939128e9 --- /dev/null +++ b/yellow-paper/Dockerfile @@ -0,0 +1,4 @@ +FROM node:18-alpine +WORKDIR /usr/src +COPY . . +RUN yarn && yarn build --no-minify \ No newline at end of file