-
Notifications
You must be signed in to change notification settings - Fork 4
82 lines (66 loc) · 2.42 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: pnpm-monorepo
on:
pull_request:
jobs:
pnpm-monorepo:
runs-on: ubuntu-latest
container:
image: tokamaknetwork/thanos-ci-builder:latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Declares the repository safe and not under dubious ownership.
- name: Add repository to git safe directories
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Check L1 geth version
run: ./ops/scripts/geth-version-checker.sh || (echo "geth version is wrong, update ci-builder"; exit 1)
- name: Git submodules
run: make submodules
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Restore PNPM Package Cache
uses: actions/cache@v4
with:
path: node_modules
key: pnpm-packages-v2-${{ hashFiles('pnpm-lock.yaml') }}
- name: Fetch dependencies
run: pnpm fetch --frozen-lockfile --prefer-offline
- name: Save PNPM Package Cache
uses: actions/cache@v4
with:
path: node_modules
key: pnpm-packages-v2-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install dependencies
run: pnpm install:ci:offline
- name: Print forge version
run: forge --version
- name: Build monorepo
run: pnpm build
- name: Persist to workspace
uses: actions/upload-artifact@v4
with:
name: dist-artifacts
path: |
packages/**/dist
packages/tokamak/contracts-bedrock/forge-artifacts
- name: Generate non-FPAC allocs
run: make devnet-allocs
- name: Persist build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: |
packages/**/dist
packages/tokamak/contracts-bedrock/cache
packages/tokamak/contracts-bedrock/artifacts
packages/tokamak/contracts-bedrock/forge-artifacts
packages/tokamak/contracts-bedrock/tsconfig.tsbuildinfo
packages/tokamak/contracts-bedrock/tsconfig.build.tsbuildinfo
.devnet/allocs-l1.json
.devnet/addresses.json
.devnet-fault-proofs/allocs-l1.json
.devnet-fault-proofs/addresses.json
packages/tokamak/contracts-bedrock/deploy-config/devnetL1.json
packages/tokamak/contracts-bedrock/deployments/devnetL1