@@ -2,6 +2,9 @@ name: Build
22on :
33 pull_request :
44 types : [opened, reopened, synchronize]
5+ push :
6+ branches : [master]
7+ tags : ['*']
58 workflow_dispatch :
69
710env :
3639 with :
3740 path : ${{github.workspace}}/packages/ethereum-tests
3841 key : submodule-${{ steps.create-cache-key.outputs.submodule-cache-key}}
39-
40- outputs :
42+
43+ outputs :
4144 submodule-cache-key : submodule-${{ steps.create-cache-key.outputs.submodule-cache-key}}
4245
4346 build :
5154 with :
5255 path : ${{github.workspace}}/node_modules
5356 key : npm-${{ hashFiles('package-lock.json') }}
54-
57+
5558 - name : Use Node.js 20
5659 uses : actions/setup-node@v4
5760 with :
6063
6164 - run : npm ci
6265 working-directory : ${{github.workspace}}
63-
66+
6467 - name : Cache dependencies
6568 uses : actions/cache/save@v4
6669 with :
@@ -73,19 +76,21 @@ jobs:
7376 path : ${{github.workspace}}
7477 key : npm-${{ hashFiles('package-lock.json') }}-${{ github.run_id }}
7578
76- outputs :
79+ outputs :
7780 dep-cache-key : ${{ steps.dep-cache.outputs.cache-primary-key }}-${{ github.run_id }}
7881
7982 block :
8083 needs : [build, checkout-submodules]
8184 uses : ./.github/workflows/block-build.yml
85+ secrets : inherit
8286 with :
8387 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
8488 submodule-cache-key : ${{ needs.checkout-submodules.outputs.submodule-cache-key }}
85-
89+
8690 blockchain :
8791 needs : build
8892 uses : ./.github/workflows/blockchain-build.yml
93+ secrets : inherit
8994 with :
9095 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
9196
@@ -99,30 +104,35 @@ jobs:
99104 client :
100105 needs : build
101106 uses : ./.github/workflows/client-build.yml
107+ secrets : inherit
102108 with :
103109 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
104110
105111 common :
106112 needs : build
107113 uses : ./.github/workflows/common-build.yml
114+ secrets : inherit
108115 with :
109116 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
110117
111118 devp2p :
112119 needs : build
113120 uses : ./.github/workflows/devp2p-build.yml
121+ secrets : inherit
114122 with :
115123 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
116124
117125 ethash :
118126 needs : build
119127 uses : ./.github/workflows/ethash-build.yml
128+ secrets : inherit
120129 with :
121130 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
122131
123132 evm :
124133 needs : [build, checkout-submodules]
125134 uses : ./.github/workflows/evm-build.yml
135+ secrets : inherit
126136 with :
127137 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
128138 submodule-cache-key : ${{ needs.checkout-submodules.outputs.submodule-cache-key }}
@@ -136,37 +146,43 @@ jobs:
136146 genesis :
137147 needs : build
138148 uses : ./.github/workflows/genesis-build.yml
149+ secrets : inherit
150+ with :
151+ dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
152+
153+ mpt :
154+ needs : build
155+ uses : ./.github/workflows/mpt-build.yml
156+ secrets : inherit
139157 with :
140158 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
141159
142160 rlp :
143161 needs : build
144162 uses : ./.github/workflows/rlp-build.yml
163+ secrets : inherit
145164 with :
146165 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
147166
148167 statemanager :
149168 needs : build
150169 uses : ./.github/workflows/statemanager-build.yml
170+ secrets : inherit
151171 with :
152172 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
153173
154- trie :
155- needs : build
156- uses : ./.github/workflows/trie-build.yml
157- with :
158- dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
159-
160174 tx :
161175 needs : [build, checkout-submodules]
162176 uses : ./.github/workflows/tx-build.yml
177+ secrets : inherit
163178 with :
164179 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
165180 submodule-cache-key : ${{ needs.checkout-submodules.outputs.submodule-cache-key }}
166181
167182 util :
168183 needs : build
169184 uses : ./.github/workflows/util-build.yml
185+ secrets : inherit
170186 with :
171187 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
172188
@@ -179,16 +195,18 @@ jobs:
179195 vm-pr :
180196 needs : [build, checkout-submodules]
181197 uses : ./.github/workflows/vm-pr.yml
198+ secrets : inherit
182199 with :
183200 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
184201 submodule-cache-key : ${{ needs.checkout-submodules.outputs.submodule-cache-key }}
185202
186203 wallet :
187204 needs : build
188205 uses : ./.github/workflows/wallet-build.yml
206+ secrets : inherit
189207 with :
190208 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
191-
209+
192210 lint :
193211 needs : build
194212 uses : ./.github/workflows/lint.yml
@@ -201,5 +219,3 @@ jobs:
201219 with :
202220 dep-cache-key : ${{ needs.build.outputs.dep-cache-key }}
203221 submodule-cache-key : ${{ needs.checkout-submodules.outputs.submodule-cache-key }}
204-
205-
0 commit comments