Skip to content

Commit

Permalink
path native version in replay
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Oct 18, 2024
1 parent 9d25c93 commit 45ca7da
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/starknet-blocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,17 @@ jobs:
- name: Install Starknet Replay deps
run: make deps

- name: Run Blocks
- name: Patch Cairo Native's version
if: ${{ matrix.dump == native }}
run: |
cargo run --features ${{matrix.features}} block-range 807301 807301 mainnet
echo \
"\n[patch.'https://github.com/lambdaclass/cairo_native']
cairo-native = { git = 'https://github.com/lambdaclass//cairo_native.git', rev = ${{ github.event.pull_request.head.sha }}" \
Cargo.toml
cargo update
- name: Run Blocks
run: cargo run --features ${{matrix.features}} block-range 807301 807301 mainnet

- name: Upload generated Dump
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -117,4 +125,8 @@ jobs:

- name: Check Diffs
run: |
if [./scripts/cmp_state_dumps.sh | grep Matching == ]
diffs=./scripts/diff-check.sh
if cpm -s $diffs 0 then \
echo "$diffs DUMPS DIFFING" \
exit 1 \
fi

0 comments on commit 45ca7da

Please sign in to comment.