refactor(blockifier): use get versioned contract class in py state reader #10686
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
name: Blockifier-CI | |
# TODO(Dori, 15/8/2024): Split this job, so the feature-less build doesn't run on every push to main | |
# branches. | |
on: | |
push: | |
branches: | |
- main | |
- main-v[0-9].** | |
tags: | |
- v[0-9].** | |
# TODO(Dori, 1/9/2024): Decide when exactly native-blockifier artifacts will be built. Until | |
# then, keep the 'paths' key empty and build on every push to a release branch / tag. | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- auto_merge_enabled | |
- edited | |
paths: | |
# Other than code-related changes, all changes related to the native-blockifier build-and-push | |
# process should trigger the build (e.g., changes to the Dockerfile, build scripts, etc.). | |
- '.github/workflows/blockifier_ci.yml' | |
- '.github/workflows/upload_artifacts_workflow.yml' | |
- 'build_native_in_docker.sh' | |
- 'Cargo.lock' | |
- 'Cargo.toml' | |
- 'crates/blockifier/**' | |
- 'crates/native_blockifier/**' | |
- 'scripts/build_native_blockifier.sh' | |
- 'scripts/dependencies.sh' | |
- 'scripts/install_build_tools.sh' | |
- 'scripts/sequencer-ci.Dockerfile' | |
env: | |
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld" | |
# On PR events, cancel existing CI runs on this same PR for this workflow. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
jobs: | |
feature-combo-builds: | |
runs-on: starkware-ubuntu-latest-medium | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/bootstrap | |
# No features - build blockifier without features activated by dependencies in the workspace. | |
- run: cargo build -p blockifier | |
- run: cargo test -p blockifier | |
# transaction_serde is not activated by any workspace crate; test the build. | |
- run: cargo build -p blockifier --features transaction_serde | |
- run: cargo test -p blockifier --features transaction_serde | |
# cairo_native is not activated by any workspace crate; test the build. | |
- run: cargo build -p blockifier --features cairo_native | |
- run: cargo test -p blockifier --features cairo_native |