Skip to content

Commit

Permalink
Merge branch 'main' into zksync-era-integration-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosNicolau committed Aug 20, 2024
2 parents 2a28162 + c1c1d2e commit 6509f4a
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,3 +440,47 @@ jobs:
system-contracts: system-contracts-${{ matrix.encoding == 'test' && 'test' || 'prod' }}.o
encoding: ${{ matrix.encoding == 'test' && '--use-test-encoding' || '' }}
run: ./target/release/compiler-tester --load-system-contracts ${{ env.system-contracts}} ${{ env.encoding }} --target EraVM ${{ matrix.mode }} --path ${{ matrix.testgroup }}


zksync_era_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout vm sources
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/era_vm

- name: Setup compiler-tester submodule
working-directory: ${{ github.workspace }}/era_vm
run: make submodules

- name: Setup nodejs + yarn
uses: actions/setup-node@v4
with:
node-version: 18.20.2

- uses: Swatinem/rust-cache@v2
with:
workspaces: ${{ github.workspace }}

- name: Rustup toolchain install
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}

- name: Setup zksync-era
working-directory: ${{ github.workspace }}/era_vm/zksync-era
run: |
cargo install sqlx-cli --version 0.8.0
mkdir -p ./volumes/reth/data
mkdir -p ./volumes/postgres
docker compose -v up -d
sleep 15
export ZKSYNC_HOME=$(pwd)
export PATH=$PATH:./bin
zk
zk init
- name: Run tests
working-directory: ${{ github.workspace }}/era_vm
run: make era-test
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "era-compiler-tester"]
path = era-compiler-tester
url = https://github.com/lambdaclass/era-compiler-tester.git
url = https://github.com/lambdaclass/era-compiler-tester.git
[submodule "zksync-era"]
path = zksync-era
url = https://github.com/lambdaclass/zksync-era.git
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean lint test deps submodules
.PHONY: clean lint test deps submodules era-test

LLVM_PATH?=$(shell pwd)/era-compiler-tester/target-llvm/target-final/

Expand Down Expand Up @@ -26,3 +26,6 @@ test: deps
# CI test uses LLVM from the era-compiler-llvm repository, doesn't need to build it
ci-test:
export LLVM_SYS_170_PREFIX=$(LLVM_PATH) && $(MAKE) test

era-test: submodules
cd ./zksync-era/core/lib/multivm && cargo t era_vm
1 change: 1 addition & 0 deletions zksync-era
Submodule zksync-era added at 676895

0 comments on commit 6509f4a

Please sign in to comment.