Skip to content

Commit b12fd97

Browse files
committed
Cargo publish --workspace
Signed-off-by: Dennis Keck <26092524+fellhorn@users.noreply.github.com>
1 parent c82e044 commit b12fd97

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

.github/workflows/llama-cpp-rs-check.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ jobs:
3535
run: cargo fmt --check
3636
- name: Test
3737
run: cargo test --features sampler
38-
- name: Dry-Run Publishing llama-cpp-sys-2 Crate
39-
run: RUST_BACKTRACE=1 cargo publish --package llama-cpp-sys-2 --verbose --dry-run
40-
- name: Dry-Run Publishing llama-cpp-2 Crate
41-
run: RUST_BACKTRACE=1 cargo publish --package llama-cpp-2 --verbose --dry-run
38+
- name: Dry-Run Publishing
39+
run: RUST_BACKTRACE=1 cargo publish --workspace --verbose --dry-run
4240
arm64:
4341
name: Check that it builds on various targets
4442
runs-on: ubuntu-latest
@@ -85,4 +83,4 @@ jobs:
8583
- name: Build
8684
run: cargo build --features sampler
8785
- name: Test
88-
run: cargo test --features sampler
86+
run: cargo test --features sampler

.github/workflows/publish-upon-release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ jobs:
1818
with:
1919
submodules: recursive
2020
- name: Publish crates for llama-cpp-sys-2
21-
run: RUST_BACKTRACE=1 cargo publish --package llama-cpp-sys-2 --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --verbose
22-
- name: Publish crates for llama-cpp-2
23-
run: RUST_BACKTRACE=1 cargo publish --package llama-cpp-2 --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --verbose
24-
21+
run: RUST_BACKTRACE=1 cargo publish --workspace --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --verbose
2522
# Trigger the 'update-toml-version' workflow
2623
- name: Dispatch Update TOML Version Event
2724
if: success() # Ensure this runs only if the previous steps were successful

examples/embeddings/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "embeddings"
33
version = "0.1.123"
44
edition = "2021"
5+
publish = false
56

67
[dependencies]
78
llama-cpp-2 = { path = "../../llama-cpp-2", version = "0.1.69" }

examples/mtmd/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "mtmd"
33
version = "0.1.86"
44
edition = "2021"
5+
publish = false
56

67
[dependencies]
78
llama-cpp-2 = { path = "../../llama-cpp-2", version = "0.1.86", features = ["mtmd"] }

examples/reranker/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "reranker"
33
version = "0.1.86"
44
edition = "2021"
5+
publish = false
56

67
[dependencies]
78
llama-cpp-2 = { path = "../../llama-cpp-2", version = "0.1.86" }
@@ -17,4 +18,4 @@ native = ["llama-cpp-2/native"]
1718
vulkan = ["llama-cpp-2/vulkan"]
1819

1920
[lints]
20-
workspace = true
21+
workspace = true

examples/simple/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "simple"
33
version = "0.1.123"
44
edition = "2021"
5+
publish = false
56

67
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
78

0 commit comments

Comments
 (0)