Skip to content

Commit 32528a5

Browse files
committed
Fix CI
1 parent a2534eb commit 32528a5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/develop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
ln -snf .. ckb-vm-test-suite/ckb-vm
7070
docker run --rm -v `pwd`:/code nervos/ckb-riscv-gnu-toolchain:bionic-20210804 cp -r /riscv /code/riscv
7171
cd ckb-vm-test-suite
72-
git checkout 898edc351eeb4de974ca4f0ff8d1e4943a95aecb
72+
git checkout 6082bb2710615297f3a9fec95629636e146882c8
7373
git submodule update --init --recursive
7474
RISCV=`pwd`/../riscv ./test.sh
7575
@@ -136,7 +136,7 @@ jobs:
136136
ln -snf .. ckb-vm-test-suite/ckb-vm
137137
docker run --rm -v `pwd`:/code nervos/ckb-riscv-gnu-toolchain:bionic-20210804 cp -r /riscv /code/riscv
138138
cd ckb-vm-test-suite
139-
git checkout 898edc351eeb4de974ca4f0ff8d1e4943a95aecb
139+
git checkout 6082bb2710615297f3a9fec95629636e146882c8
140140
git submodule update --init --recursive
141141
RISCV=`pwd`/../riscv ./test.sh --build-only
142142
cd ..

benches/vm_benchmark.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use bytes::Bytes;
66
use ckb_vm::{
77
machine::{
88
asm::{AsmCoreMachine, AsmMachine},
9-
DefaultMachineBuilder, VERSION0, VERSION2,
9+
DefaultMachineBuilder, DefaultMachineRunner, SupportMachine, VERSION0, VERSION2,
1010
},
1111
ISA_B, ISA_IMC, ISA_MOP,
1212
};
@@ -40,7 +40,7 @@ fn asm_benchmark(c: &mut Criterion) {
4040
"bar",
4141
].into_iter().map(|a| Ok(a.into()));
4242
b.iter(|| {
43-
let asm_core = AsmCoreMachine::new(ISA_IMC, VERSION0, u64::MAX);
43+
let asm_core = <Box<AsmCoreMachine> as SupportMachine>::new(ISA_IMC, VERSION0, u64::MAX);
4444
let core = DefaultMachineBuilder::new(asm_core).build();
4545
let mut machine = AsmMachine::new(core);
4646
machine.load_program(&buffer, args.clone()).unwrap();
@@ -61,7 +61,7 @@ fn mop_benchmark(c: &mut Criterion) {
6161
"bar",
6262
].into_iter().map(|a| Ok(a.into()));
6363
b.iter(|| {
64-
let asm_core = AsmCoreMachine::new(ISA_IMC | ISA_B | ISA_MOP, VERSION2, u64::MAX);
64+
let asm_core = <Box<AsmCoreMachine> as SupportMachine>::new(ISA_IMC | ISA_B | ISA_MOP, VERSION2, u64::MAX);
6565
let core = DefaultMachineBuilder::<Box<AsmCoreMachine>>::new(asm_core)
6666
.build();
6767
let mut machine = AsmMachine::new(core);

0 commit comments

Comments
 (0)