diff --git a/.circleci/config.yml b/.circleci/config.yml index 6aec09fc..303d6363 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,7 +10,7 @@ jobs: - checkout - restore_cache: keys: - - fce01-{{ checksum "engine/Cargo.toml" }}-{{ checksum "fluence-faas/Cargo.toml" }}-{{ checksum "fluence-app-service/Cargo.toml" }} + - fce01-{{ checksum "Cargo.lock" }}-{{ checksum "examples/greeting/artifacts/greeting.wasm" }}-{{ checksum "examples/records/artifacts/pure.wasm" }}-{{ checksum "examples/records/artifacts/effector.wasm" }} - run: | rustup toolchain install nightly rustup component add rustfmt @@ -25,7 +25,7 @@ jobs: paths: - ~/.cargo - ~/.rustup - key: fce01-{{ checksum "engine/Cargo.toml" }}-{{ checksum "fluence-faas/Cargo.toml" }}-{{ checksum "fluence-app-service/Cargo.toml" }} + key: fce01-{{ checksum "Cargo.lock" }}-{{ checksum "examples/greeting/artifacts/greeting.wasm" }}-{{ checksum "examples/records/artifacts/pure.wasm" }}-{{ checksum "examples/records/artifacts/effector.wasm" }} examples: docker: diff --git a/.gitignore b/.gitignore index ea40430a..4e74a486 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,6 @@ target/ /examples/ipfs_node/wasm/artifacts/ipfs_rpc_file # Allowed Wasm files for examples -!/examples/greeting/wasm/artifacts/greeting.wasm -!/examples/ipfs_node/wasm/artifacts/ipfs_rpc.wasm -!/examples/ipfs_node/wasm/artifacts/wasm_modules/* -!/examples/records/wasm/artifacts/wasm_modules/* +!/examples/greeting/artifacts/greeting.wasm +!/examples/ipfs_node/artifacts/wasm_modules/* +!/examples/records/artifacts/wasm_modules/* diff --git a/engine/tests/records.rs b/engine/tests/records.rs index 5fd47771..1614013c 100644 --- a/engine/tests/records.rs +++ b/engine/tests/records.rs @@ -20,9 +20,8 @@ use fce::IValue; #[test] #[ignore] pub fn records() { - let effector_wasm_bytes = - std::fs::read("../examples/records/artifacts/wasm_modules/effector") - .expect("../examples/records/artifacts/wasm_modules/effector.wasm should presence"); + let effector_wasm_bytes = std::fs::read("../examples/records/artifacts/wasm_modules/effector") + .expect("../examples/records/artifacts/wasm_modules/effector.wasm should presence"); let pure_wasm_bytes = std::fs::read("../examples/records/artifacts/wasm_modules/pure") .expect("../examples/records/artifacts/wasm_modules/pure.wasm should presence"); diff --git a/examples/greeting/artifacts/greeting.wasm b/examples/greeting/artifacts/greeting.wasm new file mode 100755 index 00000000..42e0515f Binary files /dev/null and b/examples/greeting/artifacts/greeting.wasm differ diff --git a/examples/records/artifacts/wasm_modules/effector.wasm b/examples/records/artifacts/wasm_modules/effector.wasm new file mode 100755 index 00000000..7a360c27 Binary files /dev/null and b/examples/records/artifacts/wasm_modules/effector.wasm differ diff --git a/examples/records/artifacts/wasm_modules/pure.wasm b/examples/records/artifacts/wasm_modules/pure.wasm new file mode 100755 index 00000000..8b79893e Binary files /dev/null and b/examples/records/artifacts/wasm_modules/pure.wasm differ