41 lines
1.1 KiB
YAML
Raw Normal View History

2019-10-07 21:13:41 +03:00
version: 2
jobs:
backend sdk:
docker:
- image: circleci/rust:latest
environment:
RUST_BACKTRACE: 1
RUST_TEST_THREADS: 1
steps:
- checkout
- restore_cache:
keys:
2019-10-07 21:26:07 +03:00
- backendsdk01-{{ checksum "Cargo.toml" }}
2019-10-07 21:13:41 +03:00
- run: | #TODO: enable 'stable' and 'beta' once `allocator_api` becomes stable
rustup toolchain install nightly-2021-02-27
rustup default nightly-2021-02-27
rustup override set nightly-2021-02-27
2021-03-28 23:22:12 +03:00
rustup target add wasm32-wasi
2019-10-07 21:13:41 +03:00
rustup component add rustfmt
rustup component add clippy
cargo fmt --all -- --check --color always
2021-03-28 23:22:12 +03:00
(cd fluence; cargo build -v --target wasm32-wasi --all-features)
(cd fluence; cargo clippy -v --target wasm32-wasi)
(cd fluence-test; cargo build)
2021-05-10 13:50:52 +03:00
(cd crates/marine-macro-impl; cargo test)
2021-03-28 23:22:12 +03:00
2021-04-04 23:46:35 +03:00
TARGET=wasm32-wasi cargo test -v --all-features
2021-03-28 23:22:12 +03:00
2019-10-07 21:13:41 +03:00
- save_cache:
paths:
- ~/.cargo
- ~/.rustup
2019-10-07 21:26:07 +03:00
key: backendsdk01-{{ checksum "Cargo.toml" }}
2019-10-07 21:13:41 +03:00
workflows:
version: 2
fluence:
jobs:
- backend sdk