-
Notifications
You must be signed in to change notification settings - Fork 113
44 lines (33 loc) · 1.09 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# https://github.com/samuelmeuli/action-electron-builder
name: Build Executables
on:
pull_request:
jobs:
release:
runs-on: ${{ matrix.os }}
env:
NODE_OPTIONS: '--max_old_space_size=4096'
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: setup dependencies
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev libarchive-tools
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install deps with big timeout
run: |
yarn install --network-timeout 600000
- name: Build App Binaries (MacOS, Ubuntu)
if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu')
run: |
yarn electron:build
- name: Build App Binaries (Windows)
if: startsWith(matrix.os, 'windows')
run: |
yarn electron:winbuild