mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
name: Electron
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
env:
|
|
CI: true
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- windows-latest
|
|
- macos-latest
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- if: ${{ startsWith(matrix.os, 'windows') }}
|
|
run: pip.exe install setuptools
|
|
- if: ${{ ! startsWith(matrix.os, 'windows') }}
|
|
run: |
|
|
mkdir .venv
|
|
python3 -m venv .venv
|
|
source .venv/bin/activate
|
|
python3 -m pip install setuptools
|
|
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
|
|
run: |
|
|
sudo apt-get install flatpak -y
|
|
sudo apt-get install flatpak-builder -y
|
|
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
sudo flatpak install org.freedesktop.Sdk/x86_64/23.08 -y
|
|
sudo flatpak install org.freedesktop.Platform/x86_64/23.08 -y
|
|
sudo flatpak install org.electronjs.Electron2.BaseApp/x86_64/23.08 -y
|
|
- name: Set up environment
|
|
uses: ./.github/actions/setup
|
|
- name: Build Electron
|
|
run: ./bin/package-electron
|
|
- name: Upload Build
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: actual-electron-${{ matrix.os }}
|
|
path: |
|
|
packages/desktop-electron/dist/*.dmg
|
|
packages/desktop-electron/dist/*.exe
|
|
packages/desktop-electron/dist/*.AppImage
|
|
packages/desktop-electron/dist/*.flatpak
|