Skip to content
This repository was archived by the owner on Jul 8, 2026. It is now read-only.

ci: add GitHub Actions workflow to build and package application with… #56

ci: add GitHub Actions workflow to build and package application with…

ci: add GitHub Actions workflow to build and package application with… #56

Workflow file for this run

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
env:
VDATA_NATIVE_TESTS_SKIP: 1
- 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 }}