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
10 changes: 7 additions & 3 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Hint bindgen towards Command Line Tools libclang on macOS hosts
[target.aarch64-apple-darwin]
rustflags = ["-C", "link-arg=-Wl,-rpath,/Library/Developer/CommandLineTools/usr/lib"]
rustflags = [
"-C", "link-arg=-Wl,-rpath,/Library/Developer/CommandLineTools/usr/lib",
]

[target.aarch64-apple-darwin.env]
LIBCLANG_PATH = "/Library/Developer/CommandLineTools/usr/lib"
Expand All @@ -26,6 +28,8 @@ rustflags = []

[build]
incremental = true
# Parallel compilation will use default (all available cores)

[profile.dev]
debug = 0
# Use sparse registry protocol for faster dependency resolution
[registries.crates-io]
protocol = "sparse"
49 changes: 48 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ permissions:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: "1.90.0"
RUST_VERSION: "1.92.0"
DEFAULT_PLATFORMS: "linux-x86_64,macos-aarch64,windows-x86_64"

jobs:
Expand Down Expand Up @@ -141,6 +141,9 @@ jobs:
shared-key: cli-linux-x86_64
cache-on-failure: true

- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6

- name: Install system deps
run: |
sudo apt-get update
Expand All @@ -152,12 +155,16 @@ jobs:

- name: Build CLI linux-x86_64
shell: bash
env:
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
run: |
set -euo pipefail
cargo build \
--profile release-dist \
--target x86_64-unknown-linux-gnu \
--bin kalam
sccache --show-stats

- name: Package CLI artifact
shell: bash
Expand Down Expand Up @@ -214,13 +221,19 @@ jobs:
shared-key: cli-windows-x86_64
cache-on-failure: true

- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6

- name: Install system deps
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends zip

- name: Install cross
shell: bash
env:
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
run: |
set -euo pipefail
cargo install cross --locked
Expand All @@ -229,12 +242,15 @@ jobs:
shell: bash
env:
CROSS_CONTAINER_ENGINE_NO_BUILDKIT: "0"
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
run: |
set -euo pipefail
cross build \
--profile docker \
--target x86_64-pc-windows-gnu \
--bin kalam
sccache --show-stats

- name: Package CLI artifact
shell: bash
Expand Down Expand Up @@ -290,6 +306,9 @@ jobs:
shared-key: cli-macos-aarch64
cache-on-failure: true

- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6

- name: Install LLVM (fix libclang.dylib)
shell: bash
run: |
Expand All @@ -300,12 +319,16 @@ jobs:

- name: Build CLI macos-aarch64
shell: bash
env:
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
run: |
set -euo pipefail
cargo build \
--profile release-dist \
--target aarch64-apple-darwin \
--bin kalam
sccache --show-stats

- name: Package CLI artifact
shell: bash
Expand Down Expand Up @@ -396,6 +419,10 @@ jobs:
shared-key: server-linux-x86_64
cache-on-failure: true

- name: Setup sccache
if: ${{ steps.vars.outputs.build_linux == 'true' }}
uses: mozilla-actions/sccache-action@v0.0.6

- name: Install system deps
if: ${{ steps.vars.outputs.build_linux == 'true' }}
run: |
Expand All @@ -411,12 +438,15 @@ jobs:
shell: bash
env:
SKIP_UI_BUILD: "1"
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
run: |
set -euo pipefail
cargo build \
--profile release-dist \
--target x86_64-unknown-linux-gnu \
--bin kalamdb-server
sccache --show-stats

- name: Package linux artifacts
if: ${{ steps.vars.outputs.build_linux == 'true' }}
Expand Down Expand Up @@ -511,6 +541,10 @@ jobs:
shared-key: server-windows-x86_64
cache-on-failure: true

- name: Setup sccache
if: ${{ steps.vars.outputs.build_windows == 'true' }}
uses: mozilla-actions/sccache-action@v0.0.6

- name: Install system deps
if: ${{ steps.vars.outputs.build_windows == 'true' }}
run: |
Expand All @@ -520,6 +554,9 @@ jobs:
- name: Install cross
if: ${{ steps.vars.outputs.build_windows == 'true' }}
shell: bash
env:
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
run: |
set -euo pipefail
cargo install cross --locked
Expand All @@ -530,12 +567,15 @@ jobs:
env:
CROSS_CONTAINER_ENGINE_NO_BUILDKIT: "0"
SKIP_UI_BUILD: "1"
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
run: |
set -euo pipefail
cross build \
--profile docker \
--target x86_64-pc-windows-gnu \
--bin kalamdb-server
sccache --show-stats

- name: Package windows artifacts
if: ${{ steps.vars.outputs.build_windows == 'true' }}
Expand Down Expand Up @@ -629,6 +669,10 @@ jobs:
shared-key: server-macos-aarch64
cache-on-failure: true

- name: Setup sccache
if: ${{ steps.vars.outputs.build_macos == 'true' }}
uses: mozilla-actions/sccache-action@v0.0.6

- name: Install LLVM (fix libclang.dylib)
if: ${{ steps.vars.outputs.build_macos == 'true' }}
shell: bash
Expand All @@ -643,12 +687,15 @@ jobs:
shell: bash
env:
SKIP_UI_BUILD: "1"
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: "true"
run: |
set -euo pipefail
cargo build \
--profile release-dist \
--target aarch64-apple-darwin \
--bin kalamdb-server
sccache --show-stats

- name: Package macOS artifacts
if: ${{ steps.vars.outputs.build_macos == 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ use kalamdb_commons::models::UserId;
- All crates will automatically use the new version

## Active Technologies
- Rust 1.90+ (stable toolchain, edition 2021)
- Rust 1.92+ (stable toolchain, edition 2021)
- RocksDB 0.24, Apache Arrow 52.0, Apache Parquet 52.0, DataFusion 40.0, Actix-Web 4.4
- RocksDB for write path (<1ms), Parquet for flushed storage (compressed columnar format)
- TypeScript/JavaScript ES2020+ (frontend SDKs)
Expand Down
Loading