Commit ea158f5c authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

ci: Use workspace rather than cache (#3573)

* ci: Use workspace rather than cache

* remove test code
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent ace001d6
...@@ -8,10 +8,6 @@ jobs: ...@@ -8,10 +8,6 @@ jobs:
- image: ethereumoptimism/ci-builder:latest - image: ethereumoptimism/ci-builder:latest
resource_class: xlarge resource_class: xlarge
steps: steps:
- restore_cache:
keys:
- v2-cache-source-{{ .Branch }}-{{ .Revision }}
- v2-cache-source-{{ .Branch }}
- checkout - checkout
- run: - run:
name: Check if we should run name: Check if we should run
...@@ -21,43 +17,22 @@ jobs: ...@@ -21,43 +17,22 @@ jobs:
if [[ "$CHANGED" = "FALSE" ]]; then if [[ "$CHANGED" = "FALSE" ]]; then
circleci step halt circleci step halt
fi fi
- save_cache:
key: v2-cache-source-{{ .Branch }}-{{ .Revision }}
paths:
- ".git"
- restore_cache:
keys:
- v2-cache-yarn-install-{{ checksum "yarn.lock" }}
- v2-cache-yarn-install
- run: - run:
name: Install dependencies name: Install dependencies
command: yarn --frozen-lockfile command: yarn --frozen-lockfile
- run: - run:
name: print forge version name: print forge version
command: forge --version command: forge --version
- save_cache:
key: v2-cache-yarn-install-{{ checksum "yarn.lock" }}
paths:
- node_modules
- packages/common-ts/node_modules
- packages/contracts/node_modules
- packages/contracts-bedrock/node_modules
- packages/contracts-periphery/node_modules
- packages/core-utils/node_modules
- packages/data-transport-layer/node_modules
- packages/drippie-mon/node_modules
- packages/fault-detector/node_modules
- packages/message-relayer/node_modules
- packages/replica-healthcheck/node_modules
- packages/sdk/node_modules
- integration-tests/node_modules
- run: - run:
name: Build monorepo name: Build monorepo
command: yarn build command: yarn build
- save_cache: - persist_to_workspace:
key: v2-cache-yarn-build-{{ .Revision }} root: "."
paths: paths:
- "." - "node_modules"
- "packages/*/node_modules"
- "packages/*/dist"
- "packages/*/artifacts"
docker-publish: docker-publish:
...@@ -127,10 +102,8 @@ jobs: ...@@ -127,10 +102,8 @@ jobs:
- image: ethereumoptimism/ci-builder:latest - image: ethereumoptimism/ci-builder:latest
resource_class: large resource_class: large
steps: steps:
- restore_cache:
keys:
- v2-cache-yarn-build-{{ .Revision }}
- checkout - checkout
- attach_workspace: {at: "."}
- run: - run:
name: Check if we should run name: Check if we should run
command: | command: |
...@@ -187,10 +160,8 @@ jobs: ...@@ -187,10 +160,8 @@ jobs:
- image: ethereumoptimism/ci-builder:latest - image: ethereumoptimism/ci-builder:latest
resource_class: medium resource_class: medium
steps: steps:
- restore_cache:
keys:
- v2-cache-yarn-build-{{ .Revision }}
- checkout - checkout
- attach_workspace: {at: "."}
- run: - run:
name: Check if we should run name: Check if we should run
command: | command: |
...@@ -217,10 +188,8 @@ jobs: ...@@ -217,10 +188,8 @@ jobs:
- image: ethereumoptimism/ci-builder:latest - image: ethereumoptimism/ci-builder:latest
resource_class: large resource_class: large
steps: steps:
- restore_cache:
keys:
- v2-cache-yarn-build-{{ .Revision }}
- checkout - checkout
- attach_workspace: {at: "."}
- run: - run:
name: Check if we should run name: Check if we should run
command: | command: |
...@@ -374,10 +343,8 @@ jobs: ...@@ -374,10 +343,8 @@ jobs:
docker: docker:
- image: ethereumoptimism/ci-builder:latest - image: ethereumoptimism/ci-builder:latest
steps: steps:
- restore_cache:
keys:
- v2-cache-yarn-build-{{ .Revision }}
- checkout - checkout
- attach_workspace: {at: "."}
- run: - run:
name: Check if we should run name: Check if we should run
command: | command: |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment