From 0e164f32d2cc748985a3ba02e08c7f022dc2ec9c Mon Sep 17 00:00:00 2001 From: Valery Antopol Date: Thu, 14 Dec 2023 18:09:44 +0400 Subject: [PATCH] chore(examples, ci): fix examples build (#101) * update fluence-app-service to 0.29.0 * Try fix the CI examples build * fix example build --- .github/workflows/tests.yml | 2 +- Cargo.lock | 14 ++++++++++++++ Cargo.toml | 2 ++ examples/multi-service/build.sh | 4 ++++ examples/multi-service/consumer/build.sh | 2 +- examples/multi-service/producer/build.sh | 2 +- 6 files changed, 23 insertions(+), 3 deletions(-) create mode 100755 examples/multi-service/build.sh diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f573277..5995dcb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -75,7 +75,7 @@ jobs: - name: Build examples working-directory: examples - run: build.sh + run: ./build.sh - name: Run cargo check run: cargo check -v --all-features diff --git a/Cargo.lock b/Cargo.lock index de1e64e..c0829c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -249,6 +249,13 @@ dependencies = [ "windows-targets 0.48.2", ] +[[package]] +name = "consumer" +version = "0.1.0" +dependencies = [ + "marine-rs-sdk", +] + [[package]] name = "core-foundation-sys" version = "0.8.4" @@ -1604,6 +1611,13 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "producer" +version = "0.1.0" +dependencies = [ + "marine-rs-sdk", +] + [[package]] name = "psm" version = "0.1.21" diff --git a/Cargo.toml b/Cargo.toml index 8e05abf..44851a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,4 +37,6 @@ members = [ "examples/build_rs", "examples/single-service", "examples/multi-service", + "examples/multi-service/consumer", + "examples/multi-service/producer", ] diff --git a/examples/multi-service/build.sh b/examples/multi-service/build.sh new file mode 100755 index 0000000..7a72352 --- /dev/null +++ b/examples/multi-service/build.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +(cd producer; ./build.sh) +(cd consumer; ./build.sh) diff --git a/examples/multi-service/consumer/build.sh b/examples/multi-service/consumer/build.sh index bc1eaa1..b47e8ae 100755 --- a/examples/multi-service/consumer/build.sh +++ b/examples/multi-service/consumer/build.sh @@ -6,4 +6,4 @@ marine build --release rm artifacts/* || true mkdir -p artifacts -cp target/wasm32-wasi/release/consumer.wasm artifacts/ +cp ../../../target/wasm32-wasi/release/consumer.wasm artifacts/ diff --git a/examples/multi-service/producer/build.sh b/examples/multi-service/producer/build.sh index 31f2ce8..194d7f7 100755 --- a/examples/multi-service/producer/build.sh +++ b/examples/multi-service/producer/build.sh @@ -6,4 +6,4 @@ marine build --release rm artifacts/* || true mkdir -p artifacts -cp target/wasm32-wasi/release/producer.wasm artifacts/ +cp ../../../target/wasm32-wasi/release/producer.wasm artifacts/