-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1.27 KB
/
daily.yml
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
name: Daily Block Run
on:
schedule:
# At the end of every day
- cron: "0 0 * * *"
# remove later, only for testing
push:
env:
RANGE_SIZE: 1
jobs:
run-and-compare:
runs-on: ubuntu-latest
env:
LLVM_SYS_191_PREFIX: /usr/lib/llvm-19/
MLIR_SYS_190_PREFIX: /usr/lib/llvm-19/
TABLEGEN_190_PREFIX: /usr/lib/llvm-19/
RPC_ENDPOINT_TESTNET: ${{ secrets.RPC_ENDPOINT_TESTNET }}
RPC_ENDPOINT_MAINNET: ${{ secrets.RPC_ENDPOINT_MAINNET }}
strategy:
matrix:
block: [742000]
steps:
- uses: ./.github/actions/install-linux-deps
- name: Setup rust env
uses: dtolnay/[email protected]
- uses: actions/checkout@v4
- name: Retreive cached dependecies
uses: Swatinem/rust-cache@v2
- uses: ./.github/actions/install-native-runtime
- name: Run with Native
run: |
BLOCK_START=${{ matrix.block }}
BLOCK_END=$(($BLOCK_START + $RANGE_SIZE - 1))
cargo run --features state_dump block-range $BLOCK_START $BLOCK_END mainnet
- name: Run with VM
run: |
BLOCK_START=${{ matrix.block }}
BLOCK_END=$(($BLOCK_START + $RANGE_SIZE - 1))
cargo run --features state_dump,only_cairo_vm block-range $BLOCK_START $BLOCK_END mainnet