Skip to content

Commit 8025afc

Browse files
committed
feat: Add serialport build steps for armv7l in CI
1 parent 7437005 commit 8025afc

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/publish-armv7l.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,22 @@ jobs:
2727
with:
2828
node-version: 18
2929
cache: npm
30-
30+
31+
- name: Install node-gyp and node-pre-gyp
32+
run: sudo npm install -g node-gyp node-pre-gyp
33+
3134
- name: Setup Python
3235
uses: actions/setup-python@v2
3336
with:
34-
python-version: '3.10'
37+
python-version: '3.10'
3538

3639
- name: Install and build
3740
run: |
3841
npm install
42+
# Build serialport for armv7l
43+
cd node_modules/@serialport/bindings-cpp
44+
sudo node-gyp configure build
45+
cd ../../../
3946
npm run postinstall
4047
npm run build
4148

0 commit comments

Comments
 (0)