66 # monthly on 1 at 0:00 UTC
77 - cron : 0 0 1 * *
88 workflow_dispatch :
9-
9+ push : # TODO remove this after CR15 lands on master
10+ branches : ['martinvol/*'] # TODO remove this after CR15 lands on master
1011permissions :
1112 contents : read
1213
1920 fail-fast : false
2021 matrix :
2122 include :
22- - tag : core-contracts.v11
23- node-version : 18
24- - tag : core-contracts.v12-renamed
25- node-version : 18
26- - tag : core-contracts.v13
27- node-version : 18
28- - tag : core-contracts.v14
23+ - tag : core-contracts.v14.anvil
2924 node-version : 18
3025 steps :
3126 - uses : actions/checkout@v4
@@ -37,25 +32,29 @@ jobs:
3732 uses : actions/setup-node@v4
3833 with :
3934 node-version : ${{ matrix.node-version }}
40- - name : Install yarn dependencies
41- run : git config --global url."https://".insteadOf ssh:// && yarn install
42- - name : Build packages
43- run : yarn build --ignore docs --include-dependencies
35+ - name : install foundry
36+ uses : foundry-rs/foundry-toolchain@v1
37+ with :
38+ version : ' v1.0.0'
39+ - name : Install forge dependencies
40+ run : forge install
41+ working-directory : packages/protocol
4442 # Workaround for https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-repositor
4543 # This is needed because some runners messup with permissions of git files and submodules. Particularly problematic for DinD runners (e.g. self-hosted+container arg)
4644 - name : Configure git safe directories
4745 run : git config --global --add safe.directory '*'
4846 - name : Generate devchain of previous release
4947 run : |
50- mkdir devchain
51- GRANTS_FILE=scripts/truffle/releaseGoldExampleConfigs.json
52- yarn --cwd packages/protocol devchain generate-tar devchain/devchain.tar.gz --release_gold_contracts $GRANTS_FILE
53- mv packages/protocol/build/contracts* devchain/
48+ yarn anvil-devchain:start-L2
49+ mkdir .tmp/devchain
50+ mv .tmp/devchain.json .tmp/devchain
51+ mv .tmp/l2-devchain.json .tmp/devchain
52+ working-directory : packages/protocol
5453 - name : Upload devchain as artifact
5554 uses : actions/upload-artifact@v4
5655 with :
5756 name : devchain-${{ matrix.tag }}
58- path : devchain
57+ path : packages/protocol/.tmp/ devchain
5958 # Max retention time is 90 days for public repos
6059 # https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration#artifact-and-log-retention-policy
6160 retention-days : 90
0 commit comments