Skip to content

readme, moving electron-builder config to a ts file #60

readme, moving electron-builder config to a ts file

readme, moving electron-builder config to a ts file #60

Workflow file for this run

name: build
on:
push:
branches:
- electron
paths:
- "**.ts"
- "**.js"
- "**.mjs"
- "**.json"
- "**.svelte"
- ".github/workflows/build.yaml"
workflow_dispatch:
jobs:
release:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: "**/package-lock.json"
- name: Install dependencies
run: npm ci
- name: Run lint and typecheck
if: matrix.os == 'ubuntu-latest'
run: npm run lint && npm run typecheck
- name: Build for Linux
if: matrix.os == 'ubuntu-latest'
run: npm run build:linux
- name: Build for macOS
if: matrix.os == 'macos-latest'
run: npm run build:mac
- name: Build for Windows
if: matrix.os == 'windows-latest'
run: npm run build:win
- name: Upload Linux installer
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: linux
path: ./dist/rt-*-linux.deb
compression-level: 0
- name: Upload macOS installer
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v4
with:
name: mac
path: ./dist/rt-*-mac.dmg
compression-level: 0
- name: Upload Windows installer
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: windows
path: ./dist/rt-*-win.exe
compression-level: 0