From f633fc91cfb672e1607d5727f5a65103763467a5 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Wed, 24 Jul 2024 09:11:02 +0300 Subject: [PATCH] sqlite3: Add to cargo dist bundle --- .github/workflows/release.yml | 2 +- Cargo.lock | 2 +- Cargo.toml | 6 +++++- sqlite3/Cargo.toml | 5 ++++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f8b6d186..f60d4191f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,7 +63,7 @@ jobs: # we specify bash to get pipefail; it guards against the `curl` command # failing. otherwise `sh` won't catch that `curl` returned non-0 shell: bash - run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.19.1/cargo-dist-installer.sh | sh" + run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.20.0/cargo-dist-installer.sh | sh" - name: Cache cargo-dist uses: actions/upload-artifact@v4 with: diff --git a/Cargo.lock b/Cargo.lock index 4535696f8..83188049b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1136,7 +1136,7 @@ dependencies = [ [[package]] name = "limbo_sqlite3" -version = "0.0.0" +version = "0.0.1" dependencies = [ "cbindgen", "env_logger 0.11.3", diff --git a/Cargo.toml b/Cargo.toml index 5069345b5..92ab652db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,9 +22,13 @@ repository = "https://github.com/penberg/limbo" # Config for 'cargo dist' [workspace.metadata.dist] # The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) -cargo-dist-version = "0.19.1" +cargo-dist-version = "0.20.0" # CI backends to support ci = "github" +# Which kinds of built libraries to include in the final archives +package-libraries = "cstaticlib" +# Which kinds of packaged libraries to install +install-libraries = "cstaticlib" # The installers to generate for each app installers = ["shell", "powershell"] # Target platforms to build apps for (Rust target-triple syntax) diff --git a/sqlite3/Cargo.toml b/sqlite3/Cargo.toml index a061e6595..11d3ad54c 100644 --- a/sqlite3/Cargo.toml +++ b/sqlite3/Cargo.toml @@ -2,12 +2,15 @@ [package] name = "limbo_sqlite3" -version = "0.0.0" +version.workspace = true authors.workspace = true edition.workspace = true license.workspace = true repository.workspace = true +[package.metadata.dist] +dist = true + [lib] crate-type = ["cdylib", "staticlib"] doc = false