Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript

feat: GitHub Actions CI/CD for cross-platform build and release

nash_su4278c43c8d01
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..3e98ee65
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,81 @@
+name: Build & Release
+
+on:
+ push:
+ tags:
+ - 'v*'
+ workflow_dispatch:
+
+jobs:
+ build:
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - platform: macos-latest
+ args: '--target aarch64-apple-darwin'
+ rust_target: aarch64-apple-darwin
+ - platform: macos-latest
+ args: '--target x86_64-apple-darwin'
+ rust_target: x86_64-apple-darwin
+ - platform: ubuntu-22.04
+ args: ''
+ rust_target: ''
+ - platform: windows-latest
+ args: ''
+ rust_target: ''
+
+ runs-on: ${{ matrix.platform }}
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Install Rust stable
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ targets: ${{ matrix.rust_target }}
+
+ - name: Install dependencies (Ubuntu)
+ if: matrix.platform == 'ubuntu-22.04'
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+
+ - name: Install frontend dependencies
+ run: npm install
+
+ - name: Build Tauri app
+ uses: tauri-apps/tauri-action@v0
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ tagName: ${{ github.ref_name }}
+ releaseName: 'LLM Wiki ${{ github.ref_name }}'
+ releaseBody: 'See the assets below for download links.'
+ releaseDraft: true
+ prerelease: false
+ args: ${{ matrix.args }}
+
+ # Optional: build universal macOS binary
+ build-macos-universal:
+ needs: build
+ runs-on: macos-latest
+ if: startsWith(github.ref, 'refs/tags/v')
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Download macOS artifacts
+ uses: actions/download-artifact@v4
+ with:
+ path: artifacts
+
+ - name: Note
+ run: echo "Universal macOS binary can be created by combining aarch64 and x86_64 builds with lipo"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..23faa779
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,49 @@
+name: CI
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+
+jobs:
+ check:
+ strategy:
+ fail-fast: false
+ matrix:
+ platform: [macos-latest, ubuntu-22.04, windows-latest]
+
+ runs-on: ${{ matrix.platform }}
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Install Rust stable
+ uses: dtolnay/rust-toolchain@stable
+
+ - name: Install dependencies (Ubuntu)
+ if: matrix.platform == 'ubuntu-22.04'
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
+
+ - name: Rust cache
+ uses: Swatinem/rust-cache@v2
+ with:
+ workspaces: src-tauri
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+
+ - name: Install frontend dependencies
+ run: npm install
+
+ - name: Check frontend build
+ run: npx vite build
+
+ - name: Check Rust build
+ working-directory: src-tauri
+ run: cargo build