Multi OS/Node #11
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-latest, 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 |