Skip to content

Package Native Dependencies #5

Package Native Dependencies

Package Native Dependencies #5

name: Package Native Dependencies
on: workflow_dispatch
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-20.04', 'windows-latest', 'macos-latest']
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
# Update the node version here after every Electron upgrade
- name: Use Node.js 18.17.0
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: '18.17.0'
registry-url: 'https://registry.npmjs.org'
- name: Use Python 3.11
uses: actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4.8.0
with:
python-version: '3.11'
- name: Install and Build
shell: bash
run: |
yarn --skip-integrity-check --network-timeout 100000
env:
NODE_OPTIONS: --max_old_space_size=4096
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9
- name: Build Browser App
shell: bash
run: |
yarn browser build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Zip Native Dependencies
shell: bash
run: yarn zip:native:dependencies
- name: Upload Artifacts
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: native-dependencies
path: ./scripts/native-dependencies-*.zip