actual/.github/workflows/build.yml

52 lines
1 KiB
YAML
Raw Normal View History

2022-05-29 17:51:46 +00:00
name: Build
defaults:
run:
shell: bash
2022-05-29 17:51:46 +00:00
env:
CI: true
on:
push:
branches:
- master
pull_request:
branches: '*'
jobs:
api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up environment
uses: ./.github/actions/setup
2022-05-29 17:51:46 +00:00
- name: Build API
run: cd packages/loot-core && yarn build:api
web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up environment
uses: ./.github/actions/setup
2022-05-29 17:51:46 +00:00
- name: Build Web
run: ./bin/package-browser
2022-05-29 20:25:33 +00:00
electron:
2022-06-29 15:34:41 +00:00
# As electron builds take longer, we only run them in master.
if: github.event_name != 'pull_request'
2022-05-29 20:25:33 +00:00
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up environment
uses: ./.github/actions/setup
2022-05-29 20:25:33 +00:00
- name: Build Electron
run: ./bin/package