2023-03-13 10:42:12 +00:00
|
|
|
name: Rust
|
2023-01-12 17:50:12 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2023-03-13 10:42:12 +00:00
|
|
|
tests:
|
2023-01-12 17:50:12 +00:00
|
|
|
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 (mainnet preset)
|
|
|
|
run: |
|
|
|
|
cd bindings/rust
|
|
|
|
cargo clean
|
|
|
|
cargo test --all --release --tests
|
|
|
|
- name: Build and Test (minimal preset)
|
|
|
|
run: |
|
|
|
|
cd bindings/rust
|
|
|
|
cargo clean
|
|
|
|
cargo test --all --release --features="minimal-spec" --tests
|