58 lines
1.8 KiB
YAML
58 lines
1.8 KiB
YAML
# Builds Ink for Linux and Windows on every v* tag (or by hand) on a Gitea Actions runner.
|
|
# macOS needs a Mac runner labelled "macos"; the job below stays off until you add one.
|
|
name: build
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Tools
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y flatpak flatpak-builder fakeroot dpkg rpm libarchive-tools
|
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
flatpak install -y flathub org.freedesktop.Platform//25.08 org.freedesktop.Sdk//25.08 org.electronjs.Electron2.BaseApp//25.08
|
|
npm i -g bun
|
|
- run: bun install --frozen-lockfile --ignore-scripts
|
|
- run: bun run build
|
|
- run: bunx electron-builder --linux AppImage deb flatpak
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: linux
|
|
path: |
|
|
dist/*.AppImage
|
|
dist/*.deb
|
|
dist/*.flatpak
|
|
|
|
windows:
|
|
runs-on: ubuntu-latest
|
|
container: electronuserland/builder:wine
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: npm i -g bun
|
|
- run: bun install --frozen-lockfile --ignore-scripts
|
|
- run: bun run build
|
|
- run: bunx electron-builder --win nsis
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: windows
|
|
path: dist/*.exe
|
|
|
|
# macos:
|
|
# runs-on: macos
|
|
# steps:
|
|
# - uses: actions/checkout@v4
|
|
# - run: npm i -g bun
|
|
# - run: bun install --frozen-lockfile --ignore-scripts
|
|
# - run: bun run build
|
|
# - run: bunx electron-builder --mac dmg
|
|
# - uses: actions/upload-artifact@v3
|
|
# with:
|
|
# name: macos
|
|
# path: dist/*.dmg
|