Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .cachebro/cache.db
Binary file not shown.
Binary file modified .cachebro/cache.db-shm
Binary file not shown.
Binary file modified .cachebro/cache.db-wal
Binary file not shown.
61 changes: 11 additions & 50 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,57 +139,18 @@ jobs:
${{ needs.setup.outputs.cache-key }}-target-${{ matrix.target }}-
${{ needs.setup.outputs.cache-key }}-target-

- name: Build release binaries
- name: Build desktop app
run: |
# Build workspace with default features (no rocksdb for faster CI)
cargo build --release --target ${{ matrix.target }} --workspace
# Build the Tauri desktop app (uses git dependencies from terraphim-ai)
cargo build --release --target ${{ matrix.target }} --package terraphim-ai-desktop

# Verify key binaries exist
ls -la target/${{ matrix.target }}/release/terraphim*

# Show binary sizes
for binary in target/${{ matrix.target }}/release/terraphim*; do
if [[ -f "$binary" ]]; then
echo "$(basename "$binary"): $(du -h "$binary" | cut -f1)"
fi
done
# Verify desktop binary exists
ls -la target/${{ matrix.target }}/release/terraphim-ai-desktop* || echo "Desktop binary not found in expected location"

- name: Run tests
run: |
# Run unit and integration tests (exclude integration-signing which requires zipsign CLI)
cargo test --release --target ${{ matrix.target }} --workspace --features "self_update/signatures"

- name: Upload binary artifacts
uses: actions/upload-artifact@v4
with:
name: rust-binaries-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/terraphim_server
target/${{ matrix.target }}/release/terraphim_mcp_server
target/${{ matrix.target }}/release/terraphim-agent
retention-days: ${{ needs.setup.outputs.is-release == 'true' && '90' || '30' }}

- name: Create .deb package
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: |
# Install cargo-deb if not present
if ! command -v cargo-deb &> /dev/null; then
cargo install cargo-deb
fi

# Build .deb package
cargo deb --target ${{ matrix.target }} --package terraphim_server --no-build

# Show package info
dpkg-deb --info target/${{ matrix.target }}/debian/terraphim-server_*.deb

- name: Upload .deb artifacts
if: matrix.target == 'x86_64-unknown-linux-gnu'
uses: actions/upload-artifact@v4
with:
name: deb-packages
path: target/${{ matrix.target }}/debian/*.deb
retention-days: ${{ needs.setup.outputs.is-release == 'true' && '90' || '30' }}
# Run tests for the desktop app (uses git dependencies)
cargo test --release --target ${{ matrix.target }} --package terraphim-ai-desktop

# Frontend build
frontend-build:
Expand Down Expand Up @@ -302,13 +263,13 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Download binary artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: rust-binaries-x86_64-unknown-linux-gnu
path: target/x86_64-unknown-linux-gnu/release/

- name: Download frontend artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: frontend-dist
path: desktop/dist/
Expand Down Expand Up @@ -350,13 +311,13 @@ jobs:
uses: actions/checkout@v6

- name: Download binary artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: rust-binaries-x86_64-unknown-linux-gnu
path: target/x86_64-unknown-linux-gnu/release/

- name: Download frontend artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: frontend-dist
path: desktop/dist/
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-optimized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ jobs:
uses: actions/checkout@v6

- name: Download frontend artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: frontend-dist
path: desktop/dist

- name: Download Docker image artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: terraphim-builder-image
path: .
Expand Down Expand Up @@ -208,13 +208,13 @@ jobs:
uses: actions/checkout@v6

- name: Download frontend artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: frontend-dist
path: frontend-dist

- name: Download Docker image artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: terraphim-builder-image
path: .
Expand Down Expand Up @@ -290,13 +290,13 @@ jobs:
uses: actions/checkout@v6

- name: Download frontend artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: frontend-dist
path: desktop/dist

- name: Download Docker image artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: terraphim-builder-image
path: .
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ jobs:
uses: actions/checkout@v6

- name: Download frontend dist
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: frontend-dist
path: desktop/dist
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
uses: actions/checkout@v6

- name: Download frontend dist
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: frontend-dist
path: desktop/dist
Expand Down Expand Up @@ -294,7 +294,7 @@ jobs:
uses: actions/checkout@v6

- name: Download frontend dist
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: frontend-dist
path: desktop/dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
uses: actions/checkout@v6

- name: Download build artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: docs-build
path: docs/book/
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
uses: actions/checkout@v6

- name: Download build artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: docs-build
path: docs/book/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
ref: ${{ needs.validate.outputs.version }}

- name: Download CI artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
continue-on-error: true # Artifacts may not exist for custom versions
with:
pattern: rust-binaries-*
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:

steps:
- name: Download deployment artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: deployment-binaries
path: ./binaries
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:

steps:
- name: Download deployment artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: deployment-binaries
path: ./binaries
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-multiarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
uses: actions/checkout@v6

- name: Download frontend artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: frontend-dist
path: desktop/dist/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/performance-benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ jobs:
uses: actions/checkout@v4

- name: Download benchmark results
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: benchmark-results-${{ github.run_id }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-bun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
run: bun install

- name: Download artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: bindings-${{ matrix.settings.target }}
path: terraphim_ai_nodejs
Expand Down Expand Up @@ -305,13 +305,13 @@ jobs:
run: bun install

- name: Download macOS x64 artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: bindings-x86_64-apple-darwin
path: ${{ github.workspace }}/artifacts

- name: Download macOS arm64 artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: bindings-aarch64-apple-darwin
path: ${{ github.workspace }}/artifacts
Expand Down Expand Up @@ -371,7 +371,7 @@ jobs:
echo "Registry: https://npm.pkg.github.com"

- name: Download all artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: ${{ github.workspace }}/artifacts

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ jobs:
bun-version: latest

- name: Download artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: bindings-${{ matrix.settings.target }}
path: terraphim_ai_nodejs
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
bun-version: latest

- name: Download universal binary
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: bindings-universal-apple-darwin
path: terraphim_ai_nodejs
Expand Down Expand Up @@ -289,13 +289,13 @@ jobs:
run: yarn install --frozen-lockfile

- name: Download macOS x64 artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: bindings-x86_64-apple-darwin
path: terraphim_ai_nodejs/artifacts

- name: Download macOS arm64 artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: bindings-aarch64-apple-darwin
path: terraphim_ai_nodejs/artifacts
Expand Down Expand Up @@ -338,7 +338,7 @@ jobs:
run: yarn install --frozen-lockfile

- name: Download all artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: artifacts

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ jobs:
enable-cache: true

- name: Download test distributions
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: wheels-${{ matrix.os }}-py${{ matrix.python-version }}
path: ${{ github.workspace }}/dist
Expand Down Expand Up @@ -283,7 +283,7 @@ jobs:
echo "📦 Publishing version: $VERSION"

- name: Download all artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: dist

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,13 @@ jobs:
id-token: write

steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
pattern: wheels-*
path: dist
merge-multiple: true

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
name: sdist
path: dist
Expand Down
Loading
Loading