diff --git a/.github/workflows/publish_release.yaml b/.github/workflows/publish_release.yaml index 8f454c23..cd0bcf58 100644 --- a/.github/workflows/publish_release.yaml +++ b/.github/workflows/publish_release.yaml @@ -19,6 +19,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Set NATS environment variables + shell: bash + run: | + set_env_var() { + echo "$1=${!1:-$2}" >> $GITHUB_ENV + echo "$1=${!1:-$2}" >> .env + } + set_env_var "NATS_URL" "nats://127.0.0.1:4222" + set_env_var "NATS_ADMIN_PASS" "default_pass" + set_env_var "NATS_PUBLIC_PASS" "default_pass" - name: Install toolchain uses: dtolnay/rust-toolchain@master diff --git a/Cargo.lock b/Cargo.lock index 398cfc2c..114696bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -645,7 +645,7 @@ checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445" [[package]] name = "bench-consumers" -version = "0.0.6" +version = "0.0.7" dependencies = [ "anyhow", "async-nats", @@ -1586,7 +1586,7 @@ dependencies = [ [[package]] name = "data-parser" -version = "0.0.6" +version = "0.0.7" dependencies = [ "criterion", "fuel-core-types", @@ -2687,7 +2687,7 @@ dependencies = [ [[package]] name = "fuel-data-parser" -version = "0.0.6" +version = "0.0.7" dependencies = [ "async-compression", "async-trait", @@ -2750,7 +2750,7 @@ checksum = "4c1b711f28553ddc5f3546711bd220e144ce4c1af7d9e9a1f70b2f20d9f5b791" [[package]] name = "fuel-streams" -version = "0.0.6" +version = "0.0.7" dependencies = [ "displaydoc", "fuel-streams-core", @@ -2761,7 +2761,7 @@ dependencies = [ [[package]] name = "fuel-streams-core" -version = "0.0.6" +version = "0.0.7" dependencies = [ "async-nats", "async-trait", @@ -2782,14 +2782,14 @@ dependencies = [ [[package]] name = "fuel-streams-macros" -version = "0.0.6" +version = "0.0.7" dependencies = [ "subject-derive", ] [[package]] name = "fuel-streams-publisher" -version = "0.0.6" +version = "0.0.7" dependencies = [ "anyhow", "clap 4.5.16", @@ -4699,7 +4699,7 @@ dependencies = [ [[package]] name = "nats-publisher" -version = "0.0.6" +version = "0.0.7" dependencies = [ "anyhow", "async-nats", @@ -6651,7 +6651,7 @@ dependencies = [ [[package]] name = "streams-tests" -version = "0.0.6" +version = "0.0.7" dependencies = [ "fuel-core-importer", "fuel-core-types", @@ -6744,7 +6744,7 @@ dependencies = [ [[package]] name = "subject-derive" -version = "0.0.6" +version = "0.0.7" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 8adaae2e..19f1d8c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ homepage = "https://fuel.network/" license = "Apache-2.0" repository = "https://github.com/fuellabs/data-systems" rust-version = "1.79.0" -version = "0.0.6" +version = "0.0.7" [workspace.dependencies] anyhow = "1.0" @@ -42,11 +42,11 @@ tracing = "0.1.40" thiserror = "1.0" fuel-streams = { path = "crates/fuel-streams" } -fuel-data-parser = { version = "0.0.6", path = "crates/fuel-data-parser" } -fuel-streams-core = { version = "0.0.6", path = "crates/fuel-streams-core" } -fuel-streams-publisher = { version = "0.0.6", path = "crates/fuel-streams-publisher" } -fuel-streams-macros = { version = "0.0.6", path = "crates/fuel-streams-macros" } -subject-derive = { version = "0.0.6", path = "crates/fuel-streams-macros/subject-derive" } +fuel-data-parser = { version = "0.0.7", path = "crates/fuel-data-parser" } +fuel-streams-core = { version = "0.0.7", path = "crates/fuel-streams-core" } +fuel-streams-publisher = { version = "0.0.7", path = "crates/fuel-streams-publisher" } +fuel-streams-macros = { version = "0.0.7", path = "crates/fuel-streams-macros" } +subject-derive = { version = "0.0.7", path = "crates/fuel-streams-macros/subject-derive" } # Workspace projects [workspace.metadata.cargo-machete] diff --git a/crates/fuel-streams-core/build.rs b/crates/fuel-streams-core/build.rs index 04b0534a..0b82711d 100644 --- a/crates/fuel-streams-core/build.rs +++ b/crates/fuel-streams-core/build.rs @@ -3,8 +3,7 @@ use std::env; use dotenvy::dotenv; fn main() { - dotenv().expect(".env file not found"); - + let _ = dotenv(); if let Ok(value) = env::var("NATS_PUBLIC_PASS") { println!("cargo:rustc-env=NATS_PUBLIC_PASS={}", value); } diff --git a/crates/fuel-streams/Cargo.toml b/crates/fuel-streams/Cargo.toml index fbcd8eee..6871a5af 100644 --- a/crates/fuel-streams/Cargo.toml +++ b/crates/fuel-streams/Cargo.toml @@ -8,7 +8,7 @@ homepage = "https://fuel.network/" license = "Apache-2.0" repository = "https://github.com/fuellabs/data-systems" rust-version = "1.79.0" -version = "0.0.6" +version = "0.0.7" [dependencies] displaydoc = { workspace = true }