-
Notifications
You must be signed in to change notification settings - Fork 19
38 lines (35 loc) · 1.07 KB
/
multi-os-node.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
name: Multi OS/Node
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * 1' # Every Monday at 6 AM UTC
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-latest, macos-latest]
node: [18.x, 20.x]
steps:
- uses: actions/[email protected]
- name: Set up Node.js ${{ matrix.node }} on ${{ matrix.os }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.11'
- name: Install dependencies and build
run: yarn --skip-integrity-check --network-timeout 100000
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9
- name: Build electron
run: yarn electron build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Build browser
run: yarn browser build
env:
NODE_OPTIONS: --max_old_space_size=4096