1919 submodules : recursive
2020
2121 - name : Install foundry-zksync
22- run : |
23- mkdir ./foundry-zksync
24- curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/foundry-zksync-v0.0.30/foundry_zksync_v0.0.30_linux_amd64.tar.gz
25- tar zxf foundry_zksync_v0.0.30_linux_amd64.tar.gz -C ./foundry-zksync
26- chmod +x ./foundry-zksync/forge ./foundry-zksync/cast
27- echo "$PWD/foundry-zksync" >> $GITHUB_PATH
22+ uses : ./.github/actions/install-zksync-foundry
2823
2924 - name : Use Node.js
3025 uses : actions/setup-node@v3
4338 - name : Build l1 contracts
4439 working-directory : l1-contracts
4540 run : |
41+ rm -rf zkstack-out
4642 yarn build:foundry
4743
44+ # Fail if regenerated zkstack-out differs from what was committed
45+ if [ -n "$(git status --porcelain -- zkstack-out)" ]; then
46+ echo "::error::l1-contracts/zkstack-out is out of date. Run 'cd l1-contracts && yarn build:foundry' and commit the changes."
47+ git --no-pager status --porcelain -- zkstack-out
48+ git --no-pager diff -- zkstack-out || true
49+ exit 1
50+ fi
51+
4852 - name : Build l2 contracts
4953 working-directory : l2-contracts
5054 run : |
@@ -175,12 +179,7 @@ jobs:
175179 l1-contracts/zkout
176180
177181 - name : Install foundry-zksync
178- run : |
179- mkdir ./foundry-zksync
180- curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/foundry-zksync-v0.0.30/foundry_zksync_v0.0.30_linux_amd64.tar.gz
181- tar zxf foundry_zksync_v0.0.30_linux_amd64.tar.gz -C ./foundry-zksync
182- chmod +x ./foundry-zksync/forge ./foundry-zksync/cast
183- echo "$PWD/foundry-zksync" >> $GITHUB_PATH
182+ uses : ./.github/actions/install-zksync-foundry
184183
185184 - name : Check selectors
186185 run : yarn l1 selectors --check
@@ -202,12 +201,7 @@ jobs:
202201 cache : yarn
203202
204203 - name : Install foundry-zksync
205- run : |
206- mkdir ./foundry-zksync
207- curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/foundry-zksync-v0.0.30/foundry_zksync_v0.0.30_linux_amd64.tar.gz
208- tar zxf foundry_zksync_v0.0.30_linux_amd64.tar.gz -C ./foundry-zksync
209- chmod +x ./foundry-zksync/forge ./foundry-zksync/cast
210- echo "$PWD/foundry-zksync" >> $GITHUB_PATH
204+ uses : ./.github/actions/install-zksync-foundry
211205
212206 - name : Install dependencies
213207 run : yarn
@@ -257,12 +251,7 @@ jobs:
257251 cache : yarn
258252
259253 - name : Install foundry-zksync
260- run : |
261- mkdir ./foundry-zksync
262- curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/foundry-zksync-v0.0.30/foundry_zksync_v0.0.30_linux_amd64.tar.gz
263- tar zxf foundry_zksync_v0.0.30_linux_amd64.tar.gz -C ./foundry-zksync
264- chmod +x ./foundry-zksync/forge ./foundry-zksync/cast
265- echo "$PWD/foundry-zksync" >> $GITHUB_PATH
254+ uses : ./.github/actions/install-zksync-foundry
266255
267256 - name : Install dependencies
268257 run : yarn
@@ -346,12 +335,7 @@ jobs:
346335 cache : yarn
347336
348337 - name : Install foundry-zksync
349- run : |
350- mkdir ./foundry-zksync
351- curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/foundry-zksync-v0.0.30/foundry_zksync_v0.0.30_linux_amd64.tar.gz
352- tar zxf foundry_zksync_v0.0.30_linux_amd64.tar.gz -C ./foundry-zksync
353- chmod +x ./foundry-zksync/forge ./foundry-zksync/cast
354- echo "$PWD/foundry-zksync" >> $GITHUB_PATH
338+ uses : ./.github/actions/install-zksync-foundry
355339
356340 - name : Install dependencies
357341 run : yarn
0 commit comments