forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(prover): run prover checks for core changes (matter-labs#950)
## What ❔ Runs prover build for both core and prover changes. ## Why ❔ Changes in core broke prover before. This ensures that such situations won't happen again. See [this thread](https://matter-labs-workspace.slack.com/archives/C05ANUCGCKV/p1706264590900969) for more information. ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zk fmt` and `zk lint`. - [ ] Spellcheck has been run via `zk spellcheck`.
- Loading branch information
Showing
3 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Workflow template for CI jobs to be ran on both Prover and Core Components | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
runs-on: [matterlabs-ci-runner] | ||
env: | ||
RUNNER_COMPOSE_FILE: "docker-compose-runner-nightly.yml" | ||
|
||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | ||
with: | ||
submodules: "recursive" | ||
|
||
- name: Setup environment | ||
run: | | ||
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV | ||
echo $(pwd)/bin >> $GITHUB_PATH | ||
echo IN_DOCKER=1 >> .env | ||
- name: Start services | ||
run: | | ||
docker-compose -f ${RUNNER_COMPOSE_FILE} pull | ||
mkdir -p ./volumes/postgres | ||
docker-compose -f ${RUNNER_COMPOSE_FILE} up --build -d zk postgres | ||
ci_run sccache --start-server | ||
- name: Init | ||
run: | | ||
ci_run zk | ||
ci_run zk db setup | ||
# This does both linting and "building". We're using `zk lint prover` as it's common practice within our repo | ||
# `zk lint prover` = cargo clippy, which does cargo check behind the scenes, which is a lightweight version of cargo build | ||
- name: Lints | ||
run: ci_run zk lint prover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters