28 lines
695 B
YAML
28 lines
695 B
YAML
name: Rust
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
- name: Get latest version of stable rust
|
|
run: rustup update stable
|
|
- name: Build and Test (minimal preset)
|
|
working-directory: bindings/rust
|
|
run: cargo test --all --release --features="minimal-spec" --tests
|
|
- name: Build and Test (mainnet preset)
|
|
working-directory: bindings/rust
|
|
run: cargo test --all --release --tests
|
|
- name: Benchmark
|
|
working-directory: bindings/rust
|
|
run: cargo bench
|