mirror of
https://github.com/fluencelabs/marine.git
synced 2024-12-12 23:05:31 +00:00
81 lines
2.3 KiB
YAML
81 lines
2.3 KiB
YAML
version: 2.1
|
|
jobs:
|
|
fce:
|
|
docker:
|
|
- image: circleci/rust:latest
|
|
environment:
|
|
RUST_BACKTRACE: 1
|
|
#RUST_TEST_THREADS: 1
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- fce01-{{ checksum "engine/Cargo.toml" }}-{{ checksum "fluence-faas/Cargo.toml" }}
|
|
- run: |
|
|
rustup toolchain install nightly
|
|
rustup component add rustfmt
|
|
rustup component add clippy --toolchain nightly
|
|
|
|
cd engine
|
|
cargo fmt --all -- --check --color always
|
|
cargo +nightly build -v --all-features
|
|
cargo +nightly test -v --all-features
|
|
cargo +nightly clippy -v
|
|
|
|
cd ../fluence-faas
|
|
cargo fmt --all -- --check --color always
|
|
cargo +nightly build -v --all-features
|
|
cargo +nightly test -v --all-features
|
|
cargo +nightly clippy -v
|
|
|
|
- save_cache:
|
|
paths:
|
|
- ~/.cargo
|
|
- ~/.rustup
|
|
key: fce01-{{ checksum "engine/Cargo.toml" }}-{{ checksum "fluence-faas/Cargo.toml" }}
|
|
|
|
examples:
|
|
docker:
|
|
- image: circleci/rust:latest
|
|
environment:
|
|
RUST_BACKTRACE: 1
|
|
#RUST_TEST_THREADS: 1
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- examples01-{{ checksum "examples/ipfs-node/effector/Cargo.toml" }}-{{ checksum "examples/ipfs-node/pure/Cargo.toml" }}
|
|
- run: |
|
|
rustup toolchain install nightly
|
|
rustup component add rustfmt
|
|
rustup component add clippy
|
|
cargo install cargo-wasi
|
|
|
|
cd examples/ipfs-node/effector
|
|
cargo fmt --all -- --check --color always
|
|
cargo wasi build
|
|
cargo clippy -v --target wasm32-wasi
|
|
|
|
cd ../pure
|
|
cargo fmt --all -- --check --color always
|
|
cargo wasi build
|
|
cargo clippy -v --target wasm32-wasi
|
|
|
|
# cd ../../../../tools/wit_embedder
|
|
# cargo fmt --all -- --check --color always
|
|
# cargo build -v --all-features
|
|
# cargo clippy -v
|
|
|
|
- save_cache:
|
|
paths:
|
|
- ~/.cargo
|
|
- ~/.rustup
|
|
key: examples01-{{ checksum "examples/ipfs_node/wasm/ipfs_node/Cargo.toml" }}-{{ checksum "examples/ipfs_node/wasm/ipfs_rpc/Cargo.toml" }}-{{ checksum "examples/ipfs_node/Cargo.toml" }}
|
|
|
|
workflows:
|
|
version: 2.1
|
|
fce:
|
|
jobs:
|
|
- fce
|
|
- examples
|