Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ permissions:
contents: read

on:
workflow_dispatch:
inputs:
ref:
description: 'Ref to release'
required: false
default: ''
ref_name:
description: 'Tag to (re)release'
required: false

push:
tags:
- 'v*'
Expand Down Expand Up @@ -46,6 +56,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -78,16 +90,17 @@ jobs:

echo "✅ Versions match confirmed!"

- name: Setup Cargo Login
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: Publish flowsdk (Core)
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish -p flowsdk

- name: Wait for Index Propagation
run: sleep 40

- name: Publish flowsdk_ffi (Bindings)
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish -p flowsdk_ffi

build-and-upload:
Expand Down Expand Up @@ -119,6 +132,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -198,5 +213,3 @@ jobs:
asset_path: ./flowsdk-${{ needs.create-release.outputs.version }}-${{ matrix.asset_name_suffix }}.zip
asset_name: flowsdk-${{ needs.create-release.outputs.version }}-${{ matrix.asset_name_suffix }}.zip
asset_content_type: application/zip


4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "flowsdk"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
description = "Safety-first, realistic, behavior-predictable messaging SDK for MQTT and more."
license = "MPL-2.0"
repository = "https://github.com/emqx/flowsdk"
documentation = "https://docs.rs/flowsdk"
keywords = ["mqtt", "async", "tokio", "network", "mqtt_over_quic"]
categories = ["network-programming", "asynchronous", "communication"]
categories = ["network-programming", "asynchronous"]

[workspace]
members = [".", "mqtt_grpc_duality", "flowsdk_ffi"]
Expand Down
4 changes: 2 additions & 2 deletions flowsdk_ffi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flowsdk_ffi"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
description = "FFI bindings for FlowSDK, allowing multi-language integration."
license = "MPL-2.0"
Expand All @@ -13,7 +13,7 @@ categories = ["api-bindings"]
crate-type = ["cdylib", "staticlib", "rlib"]

[dependencies]
flowsdk = { path = "..", version = "0.4.0" }
flowsdk = { path = "..", version = "0.4.1" }
libc = "0.2"
serde = { version = "1.0", features = ["derive"] }
uniffi = { version = "0.28", features = ["cli"] }
Expand Down