Skip to content

Commit

Permalink
Fix system contracts ci
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo committed Sep 17, 2024
1 parent 969a92f commit e25daf0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
ref: ${{ inputs.commit }}
submodules: recursive

- name: Install foundry-zksync
run: |
mkdir ./foundry-zksync
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/l2-contracts-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ jobs:
with:
submodules: recursive

- name: Install foundry-zksync
run: |
mkdir ./foundry-zksync
curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/nightly/foundry_nightly_linux_amd64.tar.gz
tar zxf foundry_nightly_linux_amd64.tar.gz -C ./foundry-zksync
chmod +x ./foundry-zksync/forge ./foundry-zksync/cast
echo "$PWD/foundry-zksync" >> $GITHUB_PATH
- name: Use Node.js
uses: actions/setup-node@v3
Expand Down
27 changes: 21 additions & 6 deletions .github/workflows/system-contracts-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,32 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Install foundry-zksync
run: |
mkdir ./foundry-zksync
curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/nightly/foundry_nightly_linux_amd64.tar.gz
tar zxf foundry_nightly_linux_amd64.tar.gz -C ./foundry-zksync
chmod +x ./foundry-zksync/forge ./foundry-zksync/cast
echo "$PWD/foundry-zksync" >> $GITHUB_PATH
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.18.0
cache: yarn

- name: Install dependencies
run: yarn
# - name: Install dependencies
# run: yarn

- name: Build artifacts
run: yarn sc build
run: |
cd system-contracts
yarn install
yarn preprocess:system-contracts
forge build --zksync --zk-enable-eravm-extensions
yarn preprocess:bootloader
forge build --zksync --zk-enable-eravm-extensions
yarn sc build
- name: Create cache
uses: actions/cache/save@v3
Expand Down Expand Up @@ -54,7 +69,7 @@ jobs:
run: yarn lint:check

test-bootloader:
needs: [build, lint]
needs: [ build, lint ]
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -84,7 +99,7 @@ jobs:
cargo run
test-contracts:
needs: [build, lint]
needs: [ build, lint ]
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -125,7 +140,7 @@ jobs:
run: cat era_test_node.log

check-hashes:
needs: [build]
needs: [ build ]
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit e25daf0

Please sign in to comment.