2024-07-10 07:55:49 +00:00
|
|
|
name: "Build: Desktop"
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
workflow_call:
|
2024-07-22 08:27:54 +00:00
|
|
|
inputs:
|
|
|
|
semver:
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-07-10 07:55:49 +00:00
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
paths: [ "desktopApp", "frontend" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
paths: [ "desktopApp", "frontend" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-desktop:
|
|
|
|
permissions: write-all
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Set up Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: '16'
|
|
|
|
|
2024-09-09 17:03:28 +00:00
|
|
|
- name: Set up frontend dependencies
|
|
|
|
run: |
|
|
|
|
cd frontend
|
|
|
|
npm install
|
|
|
|
npm run build
|
|
|
|
|
2024-07-10 07:55:49 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
cd desktopApp
|
|
|
|
npm install
|
2024-09-09 07:47:13 +00:00
|
|
|
|
2024-07-10 07:55:49 +00:00
|
|
|
- name: Build for macOS
|
|
|
|
run: |
|
|
|
|
cd desktopApp
|
|
|
|
npm run package-mac
|
|
|
|
|
|
|
|
- name: Build for Windows
|
|
|
|
run: |
|
|
|
|
cd desktopApp
|
|
|
|
npm run package-win
|
2024-09-09 07:47:13 +00:00
|
|
|
|
2024-07-10 07:55:49 +00:00
|
|
|
- name: Build for Linux
|
|
|
|
run: |
|
|
|
|
cd desktopApp
|
|
|
|
npm run package-linux
|
2024-09-09 07:47:13 +00:00
|
|
|
|
2024-07-22 08:27:54 +00:00
|
|
|
- name: 'Get Commit Hash'
|
|
|
|
id: commit
|
|
|
|
uses: pr-mpt/actions-commit-hash@v3
|
|
|
|
|
|
|
|
- name: Upload macOS Build Artifact
|
|
|
|
id: upload-release-mac-zip-asset
|
2024-09-10 00:51:44 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2024-07-22 08:27:54 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
2024-09-10 00:51:44 +00:00
|
|
|
path: desktopApp/release-builds/Robosats-darwin-x64
|
2024-09-10 01:36:44 +00:00
|
|
|
name: robosats-desktop-${{ steps.commit.outputs.short }}-mac-darwin-x64
|
2024-07-10 07:55:49 +00:00
|
|
|
|
2024-07-22 08:27:54 +00:00
|
|
|
- name: Upload Windows Build Artifact
|
|
|
|
id: upload-release-win-zip-asset
|
2024-09-10 00:51:44 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2024-07-22 08:27:54 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
2024-09-10 00:51:44 +00:00
|
|
|
path: desktopApp/release-builds/Robosats-win32-ia32
|
2024-09-10 01:36:44 +00:00
|
|
|
name: robosats-desktop-${{ steps.commit.outputs.short }}-win32-ia32
|
2024-07-22 08:27:54 +00:00
|
|
|
|
|
|
|
- name: Upload Linux Build Artifact
|
|
|
|
id: upload-release-linux-zip-asset
|
2024-09-10 00:51:44 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2024-07-22 08:27:54 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
2024-09-10 00:51:44 +00:00
|
|
|
path: desktopApp/release-builds/Robosats-linux-x64
|
2024-09-10 01:36:44 +00:00
|
|
|
name: robosats-desktop-${{ steps.commit.outputs.short }}-linux-x64
|