Skip to content

ci and electron-builder tweaks #55

ci and electron-builder tweaks

ci and electron-builder tweaks #55

Workflow file for this run

name: build
on:
push:
branches:
- electron
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
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
- name: Upload macOS installer
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v4
with:
name: mac
path: ./dist/rt-*-mac.dmg
- name: Upload Windows installer
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: windows
path: ./dist/rt-*-win.exe