Skip to content

Commit dd36ae6

Browse files
author
Symbiont OSS Sync
committed
Sync v1.0.0: crates.io publishing setup
1 parent 855096b commit dd36ae6

File tree

8 files changed

+72
-9
lines changed

8 files changed

+72
-9
lines changed

.github/workflows/publish.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Publish to crates.io
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
publish:
12+
name: Publish crates
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Install Rust toolchain
19+
uses: dtolnay/rust-toolchain@stable
20+
21+
- name: Cache cargo registry
22+
uses: actions/cache@v4
23+
with:
24+
path: |
25+
~/.cargo/registry
26+
~/.cargo/git
27+
key: ${{ runner.os }}-cargo-publish-${{ hashFiles('**/Cargo.lock') }}
28+
29+
- name: Publish symbi-dsl
30+
run: cargo publish -p symbi-dsl --token ${{ secrets.CARGO_REGISTRY_TOKEN }} || echo "symbi-dsl already published"
31+
32+
- name: Publish repl-proto
33+
run: cargo publish -p repl-proto --token ${{ secrets.CARGO_REGISTRY_TOKEN }} || echo "repl-proto already published"
34+
35+
- name: Wait for crates.io index
36+
run: sleep 30
37+
38+
- name: Publish symbi-runtime
39+
run: cargo publish -p symbi-runtime --token ${{ secrets.CARGO_REGISTRY_TOKEN }} || echo "symbi-runtime already published"
40+
41+
- name: Wait for crates.io index
42+
run: sleep 30
43+
44+
- name: Publish repl-core
45+
run: cargo publish -p repl-core --token ${{ secrets.CARGO_REGISTRY_TOKEN }} || echo "repl-core already published"
46+
47+
- name: Wait for crates.io index
48+
run: sleep 30
49+
50+
- name: Publish repl-cli
51+
run: cargo publish -p repl-cli --token ${{ secrets.CARGO_REGISTRY_TOKEN }} || echo "repl-cli already published"
52+
53+
- name: Publish repl-lsp
54+
run: cargo publish -p repl-lsp --token ${{ secrets.CARGO_REGISTRY_TOKEN }} || echo "repl-lsp already published"
55+
56+
- name: Wait for crates.io index
57+
run: sleep 30
58+
59+
- name: Publish symbi
60+
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} || echo "symbi already published"

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ rust-version = "1.70"
4141
clap = { version = "4.0", features = ["derive"] }
4242
tokio = { version = "1.0", features = ["full"] }
4343
sysinfo = "0.30.13"
44-
symbi-runtime = { path = "crates/runtime", features = ["http-input", "http-api"] }
44+
symbi-runtime = { path = "crates/runtime", version = "1.0.0", features = ["http-input", "http-api"] }
4545
cron = { version = "0.15", optional = true }
4646
chrono = { version = "0.4", features = ["serde"], optional = true }
4747
chrono-tz = { version = "0.10", optional = true }
48-
dsl = { path = "crates/dsl", package = "symbi-dsl" }
48+
dsl = { path = "crates/dsl", version = "0.6.1", package = "symbi-dsl" }
4949

5050
[features]
5151
default = ["cron"]

crates/repl-cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ serde = { version = "1.0", features = ["derive"] }
1616
serde_json = "1.0"
1717
tokio = { version = "1.0", features = ["full"] }
1818
chrono = { version = "0.4", features = ["serde"] }
19-
repl-core = { path = "../repl-core" }
20-
repl-proto = { path = "../repl-proto" }
19+
repl-core = { path = "../repl-core", version = "0.6.1" }
20+
repl-proto = { path = "../repl-proto", version = "0.6.1" }

crates/repl-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ serde_json = "1.0"
2424
uuid = { version = "1.0", features = ["v4", "serde"] }
2525
tokio = { version = "1.0", features = ["sync"] }
2626
tracing = "0.1"
27-
symbi-runtime = { path = "../runtime" }
27+
symbi-runtime = { path = "../runtime", version = "1.0.0" }
2828

2929
[dev-dependencies]
3030
tokio-test = "0.4"

crates/repl-lsp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ path = "src/main.rs"
1818
tokio = { version = "1", features = ["full"] }
1919
tower-lsp = "0.20"
2020
serde_json = "1.0"
21-
repl-core = { path = "../repl-core" }
21+
repl-core = { path = "../repl-core", version = "0.6.1" }

crates/runtime/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ path = "examples/full_system.rs"
2222
name = "symbi-mcp"
2323
path = "src/bin/symbiont_mcp.rs"
2424
[dependencies]
25-
symbi-dsl = { path = "../dsl" }
25+
symbi-dsl = { path = "../dsl", version = "0.6.1" }
2626
tokio = { version = "1.0", features = ["full"] }
2727
serde = { version = "1.0", features = ["derive"] }
2828
serde_json = "1.0"
@@ -65,7 +65,7 @@ url = "2.4"
6565
base64 = "0.21"
6666
base64ct = "=1.6.0" # Force exact compatible version that doesn't require edition2024
6767
schemapin = "1.1.4"
68-
agentpin = { path = "../../../agentpin/crates/agentpin", features = ["fetch"] }
68+
agentpin = { version = "0.1.0", features = ["fetch"] }
6969
sha2 = "0.10"
7070
hex = "0.4"
7171
argon2 = "0.5"

crates/runtime/examples/openrouter_git_agent/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
name = "openrouter_git_agent"
33
version = "0.1.0"
44
edition = "2021"
5+
publish = false
56

67
[dependencies]
7-
symbiont-runtime = { path = "../.." }
8+
symbi-runtime = { path = "../.." }
89
tokio = { version = "1.0", features = ["full"] }
910
serde = { version = "1.0", features = ["derive"] }
1011
serde_json = "1.0"

0 commit comments

Comments
 (0)