Skip to content

Commit

Permalink
Support new spawn with native simulator (#8)
Browse files Browse the repository at this point in the history
* Optimize the code structure of native-simulator

* Run set_script_info before ckb_main when native simulator

* Add test about native-simulator

* Update CI
  • Loading branch information
joii2020 authored Nov 21, 2024
1 parent b528ff8 commit f053096
Show file tree
Hide file tree
Showing 21 changed files with 1,543 additions and 133 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: Deps
run: |
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 18 && rm llvm.sh
rustup target add riscv64imac-unknown-none-elf
- name: Install Rust components
run: rustup component add rustfmt clippy
- name: Check format
Expand All @@ -19,4 +23,7 @@ jobs:
run: cargo build
- name: Run cargo test
run: cargo test --all

- name: Build native-simulator test contracts
run: cd tests/test-contracts && make build
- name: Run cargo test (with native-simulator)
run: cargo test --features="native-simulator" --all
87 changes: 72 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f053096

Please sign in to comment.