Skip to content

Commit 3aa7cc5

Browse files
committed
fix: ビルドプロセスを修正
1 parent 36f649d commit 3aa7cc5

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/publish-armv7l.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ jobs:
2828
node-version: 18
2929
cache: npm
3030

31-
- name: Install node-gyp and node-pre-gyp
32-
run: sudo npm install -g node-gyp node-pre-gyp
33-
3431
- name: Setup Python
3532
uses: actions/setup-python@v2
3633
with:
@@ -39,11 +36,11 @@ jobs:
3936
- name: Install and build
4037
run: |
4138
npm install
39+
npm run postinstall
4240
# Build serialport for armv7l
4341
cd release/app/node_modules/@serialport/bindings-cpp
44-
sudo node-gyp configure build
45-
cd ../../../../../
46-
npm run postinstall
42+
npx node-gyp configure build
43+
cd -
4744
npm run build
4845
4946
- name: Publish releases

0 commit comments

Comments
 (0)