Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw109550 committed Apr 1, 2024
1 parent bf186ce commit 0ca261c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@ jobs:
- run:
name: "Check L1 geth version"
command: ./ops/scripts/geth-version-checker.sh || (echo "geth version is wrong, update ci-builder"; false)
working_directory: rvsol/lib/optimism
- run:
name: git submodules
command: make submodules
working_directory: rvsol/lib/optimism
- restore_cache:
name: Restore PNPM Package Cache
keys:
- pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
working_directory: rvsol/lib/optimism
- restore_cache:
name: Restore Go modules cache
key: gomod-{{ checksum "go.sum" }}
working_directory: rvsol/lib/optimism
# Fetch node_modules into the pnpm store
# This will cache node_modules based on pnpm-lock so other steps can instantly install them with `pnpm install --prefer-offline`
# --prefer-offline installs node_modules instantly by just reading from cache if it exists rather than fetching from network
Expand All @@ -41,39 +45,49 @@ jobs:
- run:
name: Fetch dependencies
command: pnpm fetch --frozen-lockfile --prefer-offline
working_directory: rvsol/lib/optimism
- save_cache:
name: Save PNPM Package Cache
key: pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
working_directory: rvsol/lib/optimism
paths:
- "node_modules"
- run:
name: Install dependencies
command: pnpm install:ci:offline
working_directory: rvsol/lib/optimism
- run:
name: print forge version
command: forge --version
working_directory: rvsol/lib/optimism
- run:
name: Build monorepo
environment:
FOUNDRY_PROFILE: ci
command: pnpm build
working_directory: rvsol/lib/optimism
- run:
name: Generate FPAC allocs
command: DEVNET_FPAC="true" make devnet-allocs
working_directory: rvsol/lib/optimism
- run:
name: Copy FPAC allocs to .devnet-fpac
command: cp -r .devnet/ .devnet-fault-proofs/
working_directory: rvsol/lib/optimism
- run:
name: Generate Plasma allocs
command: DEVNET_PLASMA="true" make devnet-allocs
working_directory: rvsol/lib/optimism
- run:
name: Copy Plasma allocs to .devnet-plasma
command: cp -r .devnet/ .devnet-plasma/
working_directory: rvsol/lib/optimism
- run:
name: Generate non-FPAC allocs
command: make devnet-allocs
working_directory: rvsol/lib/optimism
- persist_to_workspace:
root: "."
root: rvsol/lib/optimism
paths:
- "packages/**/dist"
- "packages/contracts-bedrock/cache"
Expand Down

0 comments on commit 0ca261c

Please sign in to comment.