simpliplay-desktop/.github/workflows/build-linux.yml
2025-07-14 19:20:45 -05:00

69 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Build Linux
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build_x64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm install
working-directory: simpliplay
# Build Snap and AppImage both
- run: npx electron-builder --linux --x64
working-directory: simpliplay
# Upload Snap artifact
- uses: actions/upload-artifact@v4
with:
name: linux-x64-snap
path: simpliplay/dist/*.snap
- uses: actions/upload-artifact@v4
with:
name: linux-x64-appimage
path: simpliplay/dist/*.AppImage
build_arm64:
runs-on: ubuntu-24.04-arm
env:
SNAP_DESTRUCTIVE_MODE: "true"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm install
working-directory: simpliplay
# Snapcraft CLI optional if electron-builder doesn't need it
- run: sudo snap install snapcraft --classic
# Build AppImage for arm64
- run: npx electron-builder --linux --arm64
working-directory: simpliplay
# Upload Snap artifact (keep it for experimental use)
- uses: actions/upload-artifact@v4
with:
name: linux-arm64-snap
path: simpliplay/dist/*.snap
# Upload AppImage artifact
- uses: actions/upload-artifact@v4
with:
name: linux-arm64-appimage
path: simpliplay/dist/*.AppImage