mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-18 06:39:44 +00:00
65 lines
1.5 KiB
YAML
65 lines
1.5 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-arm
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- run: npm install
|
|
working-directory: simpliplay
|
|
|
|
- run: npm install -g yarn
|
|
working-directory: simpliplay
|
|
|
|
- run: npx electron-builder --linux AppImage --arm64
|
|
working-directory: simpliplay
|
|
|
|
- run: SNAPCRAFT_BUILD_ENVIRONMENT=host USE_SYSTEM_FPM=true npx electron-builder --arm64 Snap --linux
|
|
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
|