This repository was archived by the owner on Jul 8, 2026. It is now read-only.
refactor: migrate from Electron to Pake for improved performance and … #54
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 & Package (Pake) | ||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| tags: | ||
| - 'v*.*.*' | ||
| permissions: | ||
| contents: write | ||
| jobs: | ||
| build: | ||
| name: Build (${{ matrix.os }}) | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: [windows-latest, macos-latest] | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
| - name: Setup Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
| - name: Install dependencies | ||
| run: npm install | ||
| - name: Build CM bundle | ||
| run: npm run build:cm | ||
| - name: Run tests | ||
| run: npm test | ||
| - name: Build with Pake (Windows) | ||
| if: matrix.os == 'windows-latest' | ||
| run: npm run build:win | ||
| - name: Build with Pake (macOS) | ||
| if: matrix.os == 'macos-latest' | ||
| run: npm run build:mac | ||
| - name: Upload to GitHub Release | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| tag_name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'latest-build' }} | ||
| name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'Latest Build' }} | ||
| prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }} | ||
| files: | | ||
| *.exe | ||
| *.dmg | ||
| *.app.zip | ||
| dist/*.exe | ||
| dist/*.dmg | ||
| body: ${{ github.event.head_commit.message }} | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||