This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build ChatGPT for ARM Cortex-A72 (Linux AArch64) | ||
| on: | ||
| workflow_dispatch: | ||
| jobs: | ||
| build-arm64: | ||
| runs-on: ubuntu-22.04 # GitHub-hosted ARM64 runner | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: 18.x | ||
| - name: Install Rust toolchain (with target) | ||
| run: | | ||
| curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
| source $HOME/.cargo/env | ||
| rustup target add aarch64-unknown-linux-gnu | ||
| rustup update | ||
| - name: Install system dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y libwebkit2gtk-4.0-dev \ | ||
| build-essential \ | ||
| libssl-dev \ | ||
| libgtk-3-dev \ | ||
| libayatana-appindicator3-dev \ | ||
| librsvg2-dev \ | ||
| curl git pkg-config libglib2.0-dev \ | ||
| libgdk-pixbuf2.0-dev libgtk-3-dev | ||
| - name: Install frontend dependencies | ||
| run: npm ci | ||
| - name: Build ChatGPT with Tauri (ARM64) | ||
| env: | ||
| TAURI_ARCH: aarch64 | ||
| run: | | ||
| source $HOME/.cargo/env | ||
| npm run tauri build -- --target aarch64-unknown-linux-gnu | ||
| - name: Upload Linux AArch64 artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: chatgpt-linux-arm64 | ||
| path: src-tauri/target/aarch64-unknown-linux-gnu/release/bundle | ||