Switch to Bun instead of Deno (or Yarn) for faster web app builds

This commit is contained in:
Debanjum
2025-07-31 23:12:55 -07:00
parent b86430227c
commit 8ad38dfe11
14 changed files with 1621 additions and 10831 deletions

View File

@@ -51,4 +51,4 @@ jobs:
run: uv sync --all-extras
- name: 🌡️ Validate Application
run: pre-commit run --hook-stage manual --all
run: uv run pre-commit run --hook-stage manual --all

View File

@@ -40,22 +40,22 @@ jobs:
version: "latest"
- name: Set up Python 3.11
run: uv python install 3.11
run: uv python install 3.11.12
- name: ⬇️ Install Server
run: uv sync --all-extras
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: ⬇️ Install Web Client
run: |
yarn install
yarn pypiciexport
bun install
bun pypiciexport
working-directory: src/interface/web
- name: 📂 Copy Generated Files
run: |
mkdir -p src/khoj/interface/compiled
cp -r $(uv python find-python 3.11)/lib/python3.11/site-packages/khoj/interface/compiled/* src/khoj/interface/compiled/
- name: ⚙️ Build Python Package
run: |
# Setup Environment for Reproducible Builds

View File

@@ -88,5 +88,5 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: pytest
run: uv run pytest
timeout-minutes: 10