simpliplay-desktop/.github/workflows/build-linux.yml
2025-07-13 19:04:56 -05:00

70 lines
1.7 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
# arm64 builds do not use Snap anymore
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 snap,AppImage --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 both Snap and 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