mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
77 lines
1.9 KiB
YAML
77 lines
1.9 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
|
|
|
|
- name: Use ARM64 package.json
|
|
run: |
|
|
mv simpliplay/package.json simpliplay/package-unused.json
|
|
mv simpliplay/package-arm64-linux.json simpliplay/package.json
|
|
|
|
- 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
|
|
|
|
- run: sudo snap install snapcraft --classic
|
|
|
|
- run: sudo snap install gnome-3-28-1804
|
|
|
|
- run: sudo snap install gtk-common-themes
|
|
|
|
- run: sudo snap install core22
|
|
|
|
- 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
|