mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
Update and rename build-linux-x64.yml to build-linux.yml
This commit is contained in:
parent
385396f920
commit
b9a0931fff
69
.github/workflows/build-linux-x64.yml
vendored
69
.github/workflows/build-linux-x64.yml
vendored
@ -1,69 +0,0 @@
|
||||
name: Build Linux x64 (Snap + AppImage)
|
||||
# circleci config is used for arm64 builds
|
||||
|
||||
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 electron@37.2.1
|
||||
#working-directory: simpliplay
|
||||
|
||||
#- run: sudo snap install snapcraft --classic
|
||||
|
||||
#- run: npx electron-builder --linux --arm64
|
||||
#working-directory: simpliplay
|
||||
|
||||
# Zip the ARM64 AppImage
|
||||
#- run: zip -j simpliplay-arm64-appimage.zip simpliplay/dist/*.AppImage
|
||||
# working-directory: simpliplay
|
||||
|
||||
# Upload Snap artifact
|
||||
#- #uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: linux-arm64-snap
|
||||
# path: simpliplay/dist/*.snap
|
||||
|
||||
# Upload zipped AppImage artifact
|
||||
# - uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: linux-arm64-appimage-zip
|
||||
# path: simpliplay/simpliplay-arm64-appimage.zip
|
69
.github/workflows/build-linux.yml
vendored
Normal file
69
.github/workflows/build-linux.yml
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
name: Build Linux
|
||||
# arm64 builds do not use AppImage
|
||||
|
||||
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 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
|
||||
|
Loading…
Reference in New Issue
Block a user