mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
actual-server does not need to import the full actual-app/api package. It can import only the CRDT stuff.. so I'm extracting it into a new package to reduce the size of actual-server and make the link between things more transparent.
87 lines
2.1 KiB
YAML
87 lines
2.1 KiB
YAML
name: Build
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
env:
|
|
CI: true
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches: '*'
|
|
|
|
jobs:
|
|
api:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up environment
|
|
uses: ./.github/actions/setup
|
|
- name: Build API
|
|
run: cd packages/api && yarn build
|
|
- name: Create package tgz
|
|
run: cd packages/api && yarn pack && mv package.tgz actual-api.tgz
|
|
- name: Upload Build
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: actual-api
|
|
path: packages/api/actual-api.tgz
|
|
|
|
crdt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up environment
|
|
uses: ./.github/actions/setup
|
|
- name: Build CRDT
|
|
run: cd packages/crdt && yarn build
|
|
- name: Create package tgz
|
|
run: cd packages/crdt && yarn pack && mv package.tgz actual-crdt.tgz
|
|
- name: Upload Build
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: actual-crdt
|
|
path: packages/crdt/actual-crdt.tgz
|
|
|
|
web:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up environment
|
|
uses: ./.github/actions/setup
|
|
- name: Build Web
|
|
run: ./bin/package-browser
|
|
- name: Upload Build
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: actual-web
|
|
path: packages/desktop-client/build
|
|
|
|
electron:
|
|
# As electron builds take longer, we only run them in master.
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- windows-latest
|
|
- macos-latest
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up environment
|
|
uses: ./.github/actions/setup
|
|
- name: Build Electron
|
|
run: ./bin/package-electron
|
|
- name: Upload Build
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: actual-electron-${{ matrix.os }}
|
|
path: |
|
|
packages/desktop-electron/dist/*.dmg
|
|
packages/desktop-electron/dist/*.exe
|
|
packages/desktop-electron/dist/*.AppImage
|