mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 23:30:18 +00:00
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
version: 2
|
|
jobs:
|
|
backend sdk:
|
|
docker:
|
|
- image: circleci/rust:latest
|
|
environment:
|
|
RUST_BACKTRACE: 1
|
|
RUST_TEST_THREADS: 1
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- backendsdk01-{{ checksum "Cargo.toml" }}
|
|
- run: | #TODO: enable 'stable' and 'beta' once `allocator_api` becomes stable
|
|
rustup toolchain install nightly-2020-04-20
|
|
rustup default nightly-2020-04-20
|
|
rustup override set nightly-2020-04-20
|
|
rustup target add wasm32-unknown-unknown
|
|
rustup component add rustfmt
|
|
rustup component add clippy
|
|
cargo fmt --all -- --check --color always
|
|
cargo build -v --target wasm32-unknown-unknown --all-features
|
|
cargo test -v --all-features
|
|
cargo clippy -v --target wasm32-unknown-unknown
|
|
- save_cache:
|
|
paths:
|
|
- ~/.cargo
|
|
- ~/.rustup
|
|
key: backendsdk01-{{ checksum "Cargo.toml" }}
|
|
|
|
workflows:
|
|
version: 2
|
|
fluence:
|
|
jobs:
|
|
- backend sdk
|