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/wasm/ipfs_node/Cargo.toml" }}-{{ checksum "examples/ipfs_node/wasm/ipfs_rpc/Cargo.toml" }}-{{ checksum "examples/ipfs_node/Cargo.toml" }} - run: | rustup toolchain install nightly rustup component add rustfmt rustup component add clippy cargo install cargo-wasi cd examples/ipfs_node/wasm/ipfs_node cargo fmt --all -- --check --color always cargo wasi build cargo clippy -v --target wasm32-wasi cd ../ipfs_rpc 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