From 45ca7da559218ab236433daacb595936c25dabad Mon Sep 17 00:00:00 2001 From: FrancoGiachetta Date: Fri, 18 Oct 2024 17:31:52 -0300 Subject: [PATCH] path native version in replay --- .github/workflows/starknet-blocks.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/starknet-blocks.yml b/.github/workflows/starknet-blocks.yml index 3084d1a54..671d4644e 100644 --- a/.github/workflows/starknet-blocks.yml +++ b/.github/workflows/starknet-blocks.yml @@ -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 @@ -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