ci: move desktop cargo check out of github actions
This commit is contained in:
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
@@ -17,40 +17,9 @@ jobs:
|
|||||||
|
|
||||||
- run: make ci-web
|
- run: make ci-web
|
||||||
|
|
||||||
cargo-check:
|
|
||||||
name: Rust compile check
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Cache apt packages
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/apt-cache
|
|
||||||
key: ${{ runner.os }}-apt-tauri-${{ hashFiles('.github/workflows/ci.yml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-apt-tauri-
|
|
||||||
|
|
||||||
- name: Install Linux dependencies
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/apt-cache && chmod -R a+rw ~/apt-cache
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y --no-install-recommends -o dir::cache::archives="$HOME/apt-cache" libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
|
||||||
sudo chmod -R a+rw ~/apt-cache
|
|
||||||
|
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
|
||||||
with:
|
|
||||||
workspaces: packages/desktop/src-tauri -> target
|
|
||||||
|
|
||||||
- uses: ./.github/actions/setup
|
|
||||||
|
|
||||||
- run: make ci-desktop
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
needs: [check, cargo-check]
|
needs: [check]
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
16
AGENTS.md
Normal file
16
AGENTS.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# openconcho Agent Notes
|
||||||
|
|
||||||
|
## CI policy
|
||||||
|
|
||||||
|
- PR CI only runs the web checks.
|
||||||
|
- Rust/Tauri compile-check is local-only for now because the Linux dependency setup on GitHub Actions is too slow for routine PR validation.
|
||||||
|
|
||||||
|
## Required local preflight
|
||||||
|
|
||||||
|
- Before pushing any change under `packages/desktop/**` or `packages/desktop/src-tauri/**`, run:
|
||||||
|
- `pnpm --filter @openconcho/desktop cargo-check`
|
||||||
|
|
||||||
|
## Useful commands
|
||||||
|
|
||||||
|
- `make ci-web` — matches current PR CI
|
||||||
|
- `pnpm --filter @openconcho/desktop cargo-check` — local desktop compile check
|
||||||
@@ -17,6 +17,7 @@ Frontend UI for self-hosted Honcho instances — browse memories, peers, session
|
|||||||
| `make test` | Vitest (unit + integration), excludes `e2e/` |
|
| `make test` | Vitest (unit + integration), excludes `e2e/` |
|
||||||
| `make test-e2e` | Playwright e2e (uncached) |
|
| `make test-e2e` | Playwright e2e (uncached) |
|
||||||
| `make check` | lint + typecheck + test |
|
| `make check` | lint + typecheck + test |
|
||||||
|
| `pnpm --filter @openconcho/desktop cargo-check` | Local Rust/Tauri compile check before pushing desktop changes |
|
||||||
| `pnpm --filter @openconcho/web generate:api` | Regen `src/api/schema.d.ts` from `openapi.json` |
|
| `pnpm --filter @openconcho/web generate:api` | Regen `src/api/schema.d.ts` from `openapi.json` |
|
||||||
|
|
||||||
## Structure
|
## Structure
|
||||||
@@ -58,3 +59,4 @@ Read `docs/architecture.md` for component overview, data flow, and design decisi
|
|||||||
- **Conventional commits enforced** — commitlint runs in husky `commit-msg`; body lines must be ≤100 chars
|
- **Conventional commits enforced** — commitlint runs in husky `commit-msg`; body lines must be ≤100 chars
|
||||||
- **Releases via semantic-release** — `.releaserc.json`; commits land on `main`, no manual version bumps
|
- **Releases via semantic-release** — `.releaserc.json`; commits land on `main`, no manual version bumps
|
||||||
- **GitHub account** — push under `offendingcommit` (`gh auth switch` if needed)
|
- **GitHub account** — push under `offendingcommit` (`gh auth switch` if needed)
|
||||||
|
- **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
|
||||||
|
|||||||
Reference in New Issue
Block a user