Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

ci: keep the Mac release job's Rust cache between runs

leepokai3f0d7d04dd79
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml
index 1a327ff0..7d1330c8 100644
--- a/.github/workflows/release-desktop.yml
+++ b/.github/workflows/release-desktop.yml
@@ -61,6 +61,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: host
+ # Saved on main by rust-cache.yml.
+ shared-key: desktop-macos
- name: Install Apple certificate
env:
diff --git a/.github/workflows/rust-cache.yml b/.github/workflows/rust-cache.yml
new file mode 100644
index 00000000..7f68dd9e
--- /dev/null
+++ b/.github/workflows/rust-cache.yml
@@ -0,0 +1,28 @@
+name: Rust cache
+
+# Saves on main the Rust cache the desktop release's macOS job restores. A run can only read caches
+# saved on its own ref or on main, so the caches PR and tag runs save never reach the next run, and
+# without this one each release builds the host's dependencies from scratch (about 5 minutes).
+on:
+ push:
+ branches: [main]
+ paths: ["host/Cargo.lock", "rust-toolchain.toml", ".github/workflows/rust-cache.yml"]
+ workflow_dispatch:
+
+jobs:
+ desktop-macos:
+ runs-on: macos-26
+ defaults:
+ run:
+ working-directory: host
+ steps:
+ - uses: actions/checkout@v4
+ - name: Install Rust (rust-toolchain.toml)
+ run: rustup toolchain install
+ - run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
+ - uses: Swatinem/rust-cache@v2
+ with:
+ workspaces: host
+ shared-key: desktop-macos
+ # The same targets and profile as tools/native-host.mjs builds for the release.
+ - run: cargo build --release --target aarch64-apple-darwin --target x86_64-apple-darwin