mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-18 14:42:16 +00:00
68 lines
1.6 KiB
YAML
68 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
|
|
|
|
- run: npx electron-builder --linux --x64
|
|
working-directory: simpliplay
|
|
|
|
- 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-22.04-arm64
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- run: npm install
|
|
working-directory: simpliplay
|
|
|
|
- run: npx electron-builder --linux AppImage --arm64
|
|
working-directory: simpliplay
|
|
|
|
- run: sudo apt-get update && sudo apt-get install --only-upgrade libgdk-pixbuf-2.0-0
|
|
working-directory: simpliplay
|
|
|
|
- run: sudo snap install snapcraft --classic
|
|
working-directory: simpliplay
|
|
|
|
- run: SNAPCRAFT_BUILD_ENVIRONMENT=host USE_SYSTEM_FPM=true npx electron-builder --linux snap --arm64
|
|
working-directory: simpliplay
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: linux-arm64-appimage
|
|
path: simpliplay/dist/*.AppImage
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: linux-arm64-snap
|
|
path: simpliplay/dist/*.snap
|