-
Notifications
You must be signed in to change notification settings - Fork 1
ci(l1): add ZisK and OpenVM block executions to the CI #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
c64e6a0
a170cd7
6a8116c
68bd7a6
32b8465
8aabf67
293d810
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| name: "Install OpenVM" | ||
| description: "Install OpenVM Toolchain" | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Install OpenVM | ||
| shell: bash | ||
| run: | | ||
| rustup install nightly-2025-02-14 | ||
| rustup component add rust-src --toolchain nightly-2025-02-14 | ||
| cargo +1.86 install --locked --git https://github.com/openvm-org/openvm.git --tag v1.4.1 cargo-openvm |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -17,7 +17,19 @@ jobs: | |||||||||
| strategy: | ||||||||||
| fail-fast: false | ||||||||||
| matrix: | ||||||||||
| features: ["", "l2", "l2,sp1", "l2,risc0", "l2,zisk", "sp1", "risc0", "zisk"] | ||||||||||
| features: | ||||||||||
| [ | ||||||||||
| "", | ||||||||||
| "l2", | ||||||||||
| "l2,sp1", | ||||||||||
| "l2,risc0", | ||||||||||
| "l2,zisk", | ||||||||||
| "l2,openvm", | ||||||||||
| "sp1", | ||||||||||
| "risc0", | ||||||||||
| "zisk", | ||||||||||
| "openvm", | ||||||||||
| ] | ||||||||||
| steps: | ||||||||||
| - name: Checkout sources | ||||||||||
| uses: actions/checkout@v4 | ||||||||||
|
|
@@ -48,6 +60,10 @@ jobs: | |||||||||
| if: contains(matrix.features, 'zisk') | ||||||||||
| uses: ./.github/actions/install-zisk | ||||||||||
|
|
||||||||||
| - name: Install OpenVM | ||||||||||
| if: contains(matrix.features, 'openvm') | ||||||||||
| uses: ./.github/actions/install-openvm | ||||||||||
|
|
||||||||||
| - name: cargo fmt --check --all | ||||||||||
| if: matrix.features == '' # Run only without features because it's redundant to run it on all jobs | ||||||||||
| run: cargo fmt --check --all | ||||||||||
|
|
@@ -97,7 +113,7 @@ jobs: | |||||||||
| strategy: | ||||||||||
| fail-fast: false | ||||||||||
| matrix: | ||||||||||
| backend: ["sp1", "risc0", "exec"] | ||||||||||
| backend: ["sp1", "risc0", "exec", "zisk", "openvm"] | ||||||||||
| steps: | ||||||||||
| - name: Checkout sources | ||||||||||
| uses: actions/checkout@v4 | ||||||||||
|
|
@@ -116,22 +132,23 @@ jobs: | |||||||||
| if: matrix.backend == 'sp1' | ||||||||||
| uses: ./.github/actions/install-sp1 | ||||||||||
|
|
||||||||||
| - name: Build Risc0 | ||||||||||
| if: matrix.backend == 'risc0' | ||||||||||
| run: | | ||||||||||
| cargo b -r --no-default-features --features "${{ matrix.backend }}" | ||||||||||
| - name: Install OpenVM | ||||||||||
| if: matrix.backend == 'openvm' | ||||||||||
| uses: ./.github/actions/install-openvm | ||||||||||
|
|
||||||||||
| - name: Build SP1 | ||||||||||
| if: matrix.backend == 'sp1' | ||||||||||
| - name: Build | ||||||||||
| # Skip reason: https://github.com/lambdaclass/ethrex-replay/issues/53 | ||||||||||
| if: ${{ matrix.backend != 'zisk' }} | ||||||||||
| run: | | ||||||||||
| cargo b -r --features "${{ matrix.backend }}" | ||||||||||
|
|
||||||||||
| - name: Build No backend | ||||||||||
| if: matrix.backend == 'exec' | ||||||||||
| run: | | ||||||||||
| cargo b -r | ||||||||||
| if [ "${{ matrix.backend }}" = "exec" ]; then | ||||||||||
| cargo b -r | ||||||||||
|
||||||||||
| cargo b -r | |
| cargo b -r | |
| elif [ "${{ matrix.backend }}" = "risc0" ]; then | |
| cargo b -r --no-default-features --features "${{ matrix.backend }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
install-openvmaction does not exist in.github/actions/. The workflow will fail when trying to execute with theopenvmbackend because this action cannot be found. Either create the missing action directory and files, or removeopenvmfrom the matrix if it's not ready yet.