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
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches: ["main"]
pull_request:

jobs:
rust:
name: Rust checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt

- name: Cargo fmt
run: cargo fmt --all -- --check

- name: Cargo test
run: cargo test --workspace --locked

- name: Installer syntax
run: sh -n install.sh

- name: Installer help
run: sh install.sh --help

- name: CLI smoke
run: |
cargo run -p tree-ring-memory-cli -- --help
cargo run -p tree-ring-memory-cli -- welcome --no-animation
cargo run -p tree-ring-memory-cli -- integrations scan --source-root .
cargo run -p tree-ring-memory-cli -- dox sync --source-root . --dry-run

- name: Performance smoke
run: cargo run --release -p tree-ring-memory-sqlite --example performance_smoke -- 1000
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Artifacts

on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
package:
name: Package ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Build package
run: sh scripts/package-release.sh

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: tree-ring-memory-${{ matrix.os }}
path: |
dist/*.tar.gz
dist/*.sha256
95 changes: 4 additions & 91 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ members = [
"crates/tree-ring-memory-core",
"crates/tree-ring-memory-sqlite",
"crates/tree-ring-memory-cli",
"bindings/python",
]
resolver = "2"

[workspace.package]
version = "0.10.0"
version = "0.11.0"
edition = "2021"
license = "MIT"
authors = ["TerminallyLazy"]
Expand All @@ -25,6 +24,4 @@ serde_json = "1"
tempfile = "3"
thiserror = "1"
uuid = { version = "1", features = ["v4"] }
pyo3 = { version = "0.22", features = ["abi3-py311"] }
pyo3-build-config = { version = "0.22" }
ratatui = "0.30.2"
Loading
Loading