fixed macOS native module builds

This commit is contained in:
Eugene Pankov
2021-01-27 00:26:48 +01:00
parent 788dd61a13
commit 448a1a094f
7 changed files with 95 additions and 53 deletions

View File

@@ -7,9 +7,7 @@ jobs:
matrix:
include:
- arch: x86_64
electron_setup_cmd: 'true'
- arch: arm64
electron_setup_cmd: 'yarn add -D electron@11.1.1'
steps:
- name: Checkout
@@ -28,9 +26,10 @@ jobs:
cd ..
rm app/node_modules/.yarn-integrity
yarn
- name: Upgrade Electron for ARM builds
run: ${{ matrix.electron_setup_cmd }}
./node_modules/.bin/patch-package
cd app
../node_modules/.bin/patch-package
cd ..
- name: Build native deps
run: scripts/build-native.js