File tree 4 files changed +22
-6
lines changed
crates/interpreter/src/instructions
4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 51
51
- run : |
52
52
cd crates/revm
53
53
cargo check --no-default-features
54
-
54
+
55
55
check-serde :
56
56
name : check serde
57
57
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 10
10
pull_request :
11
11
branches : [main, "release/**"]
12
12
13
-
14
13
jobs :
15
14
tests-stable :
16
15
name : Ethereum Tests (Stable)
19
18
strategy :
20
19
matrix :
21
20
profile : [ethtests, release]
21
+ target : [i686-unknown-linux-gnu, x86_64-unknown-linux-gnu]
22
22
steps :
23
23
- name : Checkout sources
24
24
uses : actions/checkout@v3
@@ -37,11 +37,13 @@ jobs:
37
37
with :
38
38
cache-on-failure : true
39
39
40
+ - name : Install cross
41
+ run : cargo install cross
42
+
40
43
- name : Run Ethereum tests
41
44
run : |
42
- cargo run --profile ${{ matrix.profile }} -p revme -- statetest \
45
+ cross run --target ${{matrix.target}} --profile ${{ matrix.profile }} -p revme -- statetest \
43
46
ethtests/GeneralStateTests/ \
44
47
ethtests/LegacyTests/Constantinople/GeneralStateTests/ \
45
48
ethtests/EIPTests/StateTests/stEIP1153-transientStorage/ \
46
49
ethtests/EIPTests/StateTests/stEIP4844-blobtransactions/ \
47
- ethtests/EIPTests/StateTests/stEIP5656-MCOPY/
Original file line number Diff line number Diff line change
1
+ [build ]
2
+ pre-build = [
3
+ " apt-get update && apt-get install --assume-yes --no-install-recommends llvm-dev clang libclang-dev" ,
4
+ ]
5
+
6
+ [target .i686-unknown-linux-gnu ]
7
+ image = " ghcr.io/cross-rs/i686-unknown-linux-gnu:main"
8
+
9
+ [target .x86_64-unknown-linux-gnu ]
10
+ image = " ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main"
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ macro_rules! as_u64_saturated {
190
190
191
191
macro_rules! as_usize_saturated {
192
192
( $v: expr) => {
193
- as_u64_saturated!( $v) as usize
193
+ :: core :: convert :: TryInto :: < usize > :: try_into ( as_u64_saturated!( $v) ) . unwrap_or ( usize :: MAX )
194
194
} ;
195
195
}
196
196
@@ -205,6 +205,10 @@ macro_rules! as_usize_or_fail {
205
205
$interp. instruction_result = $reason;
206
206
return ;
207
207
}
208
- x[ 0 ] as usize
208
+ let Ok ( val) = :: core:: convert:: TryInto :: <usize >:: try_into( x[ 0 ] ) else {
209
+ $interp. instruction_result = $reason;
210
+ return ;
211
+ } ;
212
+ val
209
213
} } ;
210
214
}
You can’t perform that action at this time.
0 commit comments