Add comment and docs #41
Workflow file for this run
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: 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 | |
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 && make build | |
- name: Run cargo test (with native-simulator) | |
run: cargo test --features="native-simulator" --all |