Files
ink-note-app/.gitea/workflows/build.yml
T
2026-10-15 12:49:11 +02:00

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: |
sudo apt-get update
sudo apt-get install -y flatpak flatpak-builder fakeroot dpkg rpm libarchive-tools
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo 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