Skip to content

Commit 4c54899

Browse files
ci: move desktop cargo check out of github actions
1 parent 5a430b4 commit 4c54899

3 files changed

Lines changed: 19 additions & 32 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -17,40 +17,9 @@ jobs:
1717

1818
- run: make ci-web
1919

20-
cargo-check:
21-
name: Rust compile check
22-
runs-on: ubuntu-latest
23-
steps:
24-
- uses: actions/checkout@v4
25-
26-
- name: Cache apt packages
27-
uses: actions/cache@v4
28-
with:
29-
path: ~/apt-cache
30-
key: ${{ runner.os }}-apt-tauri-${{ hashFiles('.github/workflows/ci.yml') }}
31-
restore-keys: |
32-
${{ runner.os }}-apt-tauri-
33-
34-
- name: Install Linux dependencies
35-
run: |
36-
mkdir -p ~/apt-cache && chmod -R a+rw ~/apt-cache
37-
sudo apt-get update
38-
sudo apt-get install -y --no-install-recommends -o dir::cache::archives="$HOME/apt-cache" libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
39-
sudo chmod -R a+rw ~/apt-cache
40-
41-
- uses: dtolnay/rust-toolchain@stable
42-
43-
- uses: Swatinem/rust-cache@v2
44-
with:
45-
workspaces: packages/desktop/src-tauri -> target
46-
47-
- uses: ./.github/actions/setup
48-
49-
- run: make ci-desktop
50-
5120
release:
5221
name: Release
53-
needs: [check, cargo-check]
22+
needs: [check]
5423
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5524
runs-on: ubuntu-latest
5625
permissions:

AGENTS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# openconcho Agent Notes
2+
3+
## CI policy
4+
5+
- PR CI only runs the web checks.
6+
- Rust/Tauri compile-check is local-only for now because the Linux dependency setup on GitHub Actions is too slow for routine PR validation.
7+
8+
## Required local preflight
9+
10+
- Before pushing any change under `packages/desktop/**` or `packages/desktop/src-tauri/**`, run:
11+
- `pnpm --filter @openconcho/desktop cargo-check`
12+
13+
## Useful commands
14+
15+
- `make ci-web` — matches current PR CI
16+
- `pnpm --filter @openconcho/desktop cargo-check` — local desktop compile check

CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Frontend UI for self-hosted Honcho instances — browse memories, peers, session
1717
| `make test` | Vitest (unit + integration), excludes `e2e/` |
1818
| `make test-e2e` | Playwright e2e (uncached) |
1919
| `make check` | lint + typecheck + test |
20+
| `pnpm --filter @openconcho/desktop cargo-check` | Local Rust/Tauri compile check before pushing desktop changes |
2021
| `pnpm --filter @openconcho/web generate:api` | Regen `src/api/schema.d.ts` from `openapi.json` |
2122

2223
## Structure
@@ -58,3 +59,4 @@ Read `docs/architecture.md` for component overview, data flow, and design decisi
5859
- **Conventional commits enforced** — commitlint runs in husky `commit-msg`; body lines must be ≤100 chars
5960
- **Releases via semantic-release**`.releaserc.json`; commits land on `main`, no manual version bumps
6061
- **GitHub account** — push under `offendingcommit` (`gh auth switch` if needed)
62+
- **Desktop preflight is local** — Rust/Tauri compile-check no longer runs in PR CI; run `pnpm --filter @openconcho/desktop cargo-check` before pushing any `packages/desktop/**` or `packages/desktop/src-tauri/**` change

0 commit comments

Comments
 (0)