Support new spawn with native simulator #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install Rust components | |
run: rustup component add rustfmt clippy | |
- name: Check format | |
run: cargo fmt --all -- --check | |
- name: Run cargo clippy | |
run: cargo clippy --all | |
- name: Build | |
run: cargo build | |
- name: Run cargo test | |
run: cargo test --all | |
- name: Build native-simulator test contracts | |
run: cd tests/test-contracts && rustup target add riscv64imac-unknown-none-elf && make build | |
- name: Run cargo test (with native-simulator) | |
run: cargo test --features="native-simulator" --all |