Multi OS/Node #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/checkout@v4.1.7 | |
- name: Set up Node.js ${{ matrix.node }} on ${{ matrix.os }} | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Set up Python | |
uses: actions/setup-python@v5.1.0 | |
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 |