Skip to content

use soroban-client 0.8.0 and @sorban-react to 5.0.3 #327

use soroban-client 0.8.0 and @sorban-react to 5.0.3

use soroban-client 0.8.0 and @sorban-react to 5.0.3 #327

Workflow file for this run

name: Rust
on:
push:
branches: [main]
pull_request:
env:
RUSTFLAGS: -Dwarnings -Dclippy::all -Dclippy::pedantic
jobs:
# complete:
# if: always()
# needs: [fmt, build-and-test]
# runs-on: ubuntu-latest
# steps:
# - if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
# run: exit 1
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup update
- run: cargo fmt --all --check
build-and-test:
strategy:
matrix:
sys:
- os: ubuntu-latest
target: wasm32-unknown-unknown
test: false
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
test: true
runs-on: ${{ matrix.sys.os }}
steps:
- uses: actions/checkout@v3
- uses: stellar/actions/rust-cache@main
- run: rustup update
- run: rustup target add ${{ matrix.sys.target }}
- run: cargo clippy --target ${{ matrix.sys.target }} --lib
- if: matrix.sys.target != 'wasm32-unknown-unknown'
run: cargo clippy --target ${{ matrix.sys.target }} --bins --tests --examples --benches
- run: cargo build --target ${{ matrix.sys.target }}
- if: matrix.sys.test
run: cargo test --target ${{ matrix.sys.target }}