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
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
shared-key: ci-check
cache-targets: 'false'

- name: Stage sidecar binaries
run: node scripts/stage-sidecar.mjs

- name: pnpm run check (cargo fmt + cargo clippy)
run: pnpm run check

Expand All @@ -63,6 +66,9 @@ jobs:
with:
shared-key: ci-test-${{ matrix.os }}

- name: Stage sidecar binaries
run: node scripts/stage-sidecar.mjs

- name: pnpm run test (cargo test --workspace)
run: pnpm run test

Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,23 @@ jobs:
# follow-up task.
# -----------------------------------------------------------------------

- name: Build CLI sidecar
shell: bash
run: |
cargo build --release -p bw-agent --target ${{ matrix.target }}
TRIPLE="${{ matrix.target }}"
mkdir -p src-tauri/binaries
if [ "$RUNNER_OS" = "Windows" ]; then
EXT=".exe"
else
EXT=""
fi
# Copy as bw-agent-git-sign — the sidecar name Tauri expects.
# argv[0] detection routes to the git-sign code path at runtime.
cp "target/${TRIPLE}/release/bw-agent${EXT}" "src-tauri/binaries/bw-agent-git-sign-${TRIPLE}${EXT}"
echo "--- Sidecar binaries ---"
ls -la src-tauri/binaries/

- name: Build Tauri bundles
uses: tauri-apps/tauri-action@v0
with:
Expand Down
41 changes: 41 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions crates/bw-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
uuid = { version = "1.23", features = ["v4"] }
rusqlite = { version = "0.35", features = ["bundled"] }
clap = { version = "4", features = ["derive"] }

[lints]
workspace = true
Loading
Loading