@@ -103,21 +103,21 @@ jobs:
103103 VERSION=${{ steps.basever.outputs.ver }} aztec-up
104104
105105 - name : Start sandbox (BASE, background)
106- run : aztec start --sandbox &
106+ run : VERSION=${{ steps.basever.outputs.ver }} aztec start --sandbox &
107107
108108 - name : Start PXE node (BASE, background)
109109 run : |
110- VERSION=${{ steps.basever.outputs.ver }} aztec \
111- start --port 8081 --pxe --pxe.nodeUrl=http://localhost:8080/ \
110+ VERSION=${{ steps.basever.outputs.ver }} aztec start \
111+ --port 8081 --pxe --pxe.nodeUrl=http://localhost:8080/ \
112112 --pxe.proverEnabled false &
113113
114114 - name : Cache node_modules (BASE)
115115 uses : actions/cache@v4
116116 with :
117117 path : node_modules
118- key : ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
118+ key : ${{ runner.os }}-node-modules-${{ steps.basever.outputs.ver }}-${{ hashFiles('yarn.lock') }}
119119 restore-keys : |
120- ${{ runner.os }}-node-modules-
120+ ${{ runner.os }}-node-modules-${{ steps.basever.outputs.ver }}-
121121
122122 - name : Install deps (BASE)
123123 run : yarn install --frozen-lockfile
@@ -129,15 +129,13 @@ jobs:
129129 path : |
130130 target/
131131 src/artifacts/
132- key : ${{ runner.os }}-noir-${{ env.AZTEC_VERSION }}-${{ hashFiles('src/nr/**/*', 'Nargo.toml') }}
132+ key : ${{ runner.os }}-noir-${{ steps.basever.outputs.ver }}-${{ hashFiles('src/nr/**/*', 'Nargo.toml') }}
133133
134134 - name : Compile contracts (BASE)
135- if : steps.cache-noir-base.outputs.cache-hit != 'true'
136- run : script -e -c "${AZTEC_NARGO:-aztec-nargo} compile"
135+ run : yarn compile
137136
138137 - name : Codegen wrappers (BASE)
139- if : steps.cache-noir-base.outputs.cache-hit != 'true'
140- run : script -e -c "aztec codegen target --outdir src/artifacts --force"
138+ run : yarn codegen
141139
142140 - name : Benchmark (BASE)
143141 run : |
@@ -190,22 +188,27 @@ jobs:
190188
191189 - name : Start sandbox (PR, background)
192190 if : steps.prver.outputs.ver_diff == 'true'
193- run : aztec start --sandbox &
191+ run : |
192+ VERSION=${{ steps.prver.outputs.ver }} aztec start --sandbox &
193+ sleep 60
194194
195195 - name : Start PXE node (PR, background)
196196 if : steps.prver.outputs.ver_diff == 'true'
197197 run : |
198- VERSION=${{ steps.prver.outputs.ver }} aztec \
199- start --port 8081 --pxe --pxe.nodeUrl=http://localhost:8080/ \
198+ VERSION=${{ steps.prver.outputs.ver }} aztec start \
199+ --port 8081 --pxe --pxe.nodeUrl=http://localhost:8080/ \
200200 --pxe.proverEnabled false &
201-
201+
202+ - name : Clean project from BASE stage
203+ run : rm -rf node_modules yarn.lock
204+
202205 - name : Cache node_modules (PR)
203206 uses : actions/cache@v4
204207 with :
205208 path : node_modules
206- key : ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
209+ key : ${{ runner.os }}-node-modules-${{ steps.prver.outputs.ver }}-${{ hashFiles('yarn.lock') }}
207210 restore-keys : |
208- ${{ runner.os }}-node-modules-
211+ ${{ runner.os }}-node-modules-${{ steps.prver.outputs.ver }}-
209212
210213 - name : Install deps (PR)
211214 run : yarn install --frozen-lockfile
@@ -217,15 +220,13 @@ jobs:
217220 path : |
218221 target/
219222 src/artifacts/
220- key : ${{ runner.os }}-noir-${{ env.AZTEC_VERSION }}-${{ hashFiles('src/nr/**/*', 'Nargo.toml') }}
223+ key : ${{ runner.os }}-noir-${{ steps.prver.outputs.ver }}-${{ hashFiles('src/nr/**/*', 'Nargo.toml') }}
221224
222225 - name : Compile contracts (PR)
223- if : steps.cache-noir-pr.outputs.cache-hit != 'true'
224- run : script -e -c "${AZTEC_NARGO:-aztec-nargo} compile"
226+ run : yarn compile
225227
226228 - name : Codegen wrappers (PR)
227- if : steps.cache-noir-pr.outputs.cache-hit != 'true'
228- run : script -e -c "aztec codegen target --outdir src/artifacts --force"
229+ run : yarn codegen
229230
230231 # ──────────────────────────────────────────────────────────────
231232 # 3️⃣ DIFF & UPLOAD ARTIFACTS
0 commit comments