-
Notifications
You must be signed in to change notification settings - Fork 66
50 lines (44 loc) · 1.82 KB
/
blockifier_compiled_cairo.yml
File metadata and controls
50 lines (44 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Blockifier-Compiled-Cairo
on:
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- ".github/workflows/blockifier_compiled_cairo.yml"
- "crates/apollo_compile_to_casm/src/constants.rs" # Contains the Cairo1 compiler version.
- "crates/apollo_infra_utils/src/cairo0_compiler.rs" # Contains the Cairo0 compiler version.
- "crates/blockifier_test_utils/**"
- "scripts/dependencies.sh"
env:
RUSTFLAGS: "-D warnings"
# On PR events, cancel existing CI runs on this same PR for this workflow.
# Also, create different concurrency groups for different pushed commits, on push events.
concurrency:
group: >
${{ github.workflow }}-
${{ github.ref }}-
${{ github.event_name == 'pull_request' && 'PR' || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
verify_cairo_file_dependencies:
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Setup pypy and link to the location expected by .cargo/config.toml.
- uses: actions/setup-python@v5
id: setup-pypy
with:
python-version: "pypy3.9"
cache: "pip"
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
- env:
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV
- run: pip install -r crates/blockifier_test_utils/resources/blockifier-test-utils-requirements.txt
- name: Verify cairo contract recompilation (both cairo versions).
run: cargo test -p blockifier_test_utils --test feature_contracts_compatibility_test -- --include-ignored --nocapture