mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-18 14:42:16 +00:00
69 lines
1.6 KiB
YAML
69 lines
1.6 KiB
YAML
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
|
||
|